обработка-ошибок

The Python 3.8 bot for VK just writes messages like that

I wrote a bot for vk, but for some reason, he writes to everyone in a row, although he did not write anything Code: import ... d, random_id=event.random_id, message='Я вас не понимаю.\nНапишите «ТЗ»' )

Correct use of end-of-file validation

When using the code while(!feof(file)) { // Чтение из файла } In C or while(!file.eof()) { // Чтение из файла } ... you get trouble - an extra read string, for example. Why? How do I correctly check that the end of the file has been reached?

Error object is not iterable (Django)

Hello everyone, I encountered the error "object is not iterable" and do not understand how to solve it: There is a code snip ... e very grateful if you could tell me what is the difference between them and how to start a code with News.objects.get(pk=q).

How and by what means to find errors in PHP code?

When developing, sometimes the code does not work as intended or does not work at all. I sit and wonder: what is wrong and wh ... nd I want them to to be. Question: what are the ways to find errors in PHP code? What tools, methods, plugins, paths, etc.?

C#. Remove the background from the image

I'm writing a program in C#. For this program, I drew a picture and cut out its background. However, when you open it via Pic ... on: is there any way to get around this and remove the white background so as not to spoil the program? Thank you in advance!

How to fix it? 'int' object is not subscriptable

Here is the task: Generate 20 random integers in the range from -5 to 4, write them to the cells of the array. Calculate how ... n.append(a[i]) print('quantity positive',len(p)) print('quantity negative',len(n)) print('quantity zero',len(z))

Makemigrations are not executed and tables are not created in the Django database

Development in Visual Studio 2017. When performing "makemigrations", as well as when checking "manage.py check" I have the sa ... f and re-created by the system, but constantly gives the above error.. What could be the problem here and how is it fix it?