I'm new on Python, maybe my question is simple.
I want to simulate some physical situations. I learned that Vpython makes it easy to create simple visualizations, allowing programmers to focus more on the computational aspect of their programs. So I want to learn Vpython.
But I get a "ZeroDivisionError" Exception when I try to import vpython(the module I used is 7.6.4).
I want to simulate some physical situations. I learned that Vpython makes it easy to create simple visualizations, allowing programmers to focus more on the computational aspect of their programs. So I want to learn Vpython.
But I get a "ZeroDivisionError" Exception when I try to import vpython(the module I used is 7.6.4).
Error:Exception ignored in atexit callback: <function Exit at 0x00000212BA80B420>
Traceback (most recent call last):
File "D:\pythonProject\OpenCVLearning\venv\Lib\site-packages\vpython\vpython.py", line 22, in Exit
a = 1.0/zero
~~~^~~~~
ZeroDivisionError: float division by zero
I find the source code of Vpython and there is a "Exit" function:def Exit(): zero = 0. print('exit') a = 1.0/zeroThere is a 1.0/zero, it desn't make any sense. I think it is a very confusing behaviour.