What's wrong with In[ *] when jupyter notebook is running

1. Hang up a small demo I wrote. I wrote it like this. When I ran it, [*] appeared.
Insert picture description here
Insert picture description here
2. Obviously, the code's running result was output indefinitely like this, and it was exhausted to jupyter notebook. All of the memory, and you pay attention to the upper right corner of the page, where the red arrow points to a solid circle.
Insert picture description here
3. You can restart the kernel.
Insert picture description here
4. After the restart, the solid circle becomes a small hollow circle. At this time, you run it again, of course, it may still be the same.
Insert picture description here
5. Check the code, it is impossible to make an error for no reason. After the change, it is fine, no problem the
Insert picture description here
as for why these two codes are not the same, because that is repeated to create a new address in a while loop, so an infinite loop new

Guess you like

Origin blog.csdn.net/A_Tu_daddy/article/details/105373676