我使用VPython來模擬一個從牆上彈起的球。 爲了讓我的代碼更優雅,我決定使用類繼承來設置我的對象的尺寸和屬性(此刻,它是球和牆)。在我運行代碼之後,shell沒有產生任何錯誤,但是它也沒有產生窗口。 我是相當新的編程,我在Wine Mint 18上使用VPython 2.7。我有一種感覺,我錯過了某些明顯的東西,但我不知道它是什麼。 到目前爲止我的代碼如下: from visual impor
Traceback (most recent call last):
File "N:\Starry\Planetary Orbits Ver 8.py", line 121
UpdateDisplay(pos) # Updates the 3D displays position of Masses
File "N:\Starry\Planetary Orbits