top of page

測試Python 2 + VPython 6 安裝是否成功
-
執行VPython:點擊桌面圖示
-
在出現的視窗中打上:print 'hello world!' 。
-
按F5執行(到此為止確定 Python正常運作)。
-
畫個紅色的球半徑0.15。
from visual import *
sphere(radius = .15, color = color.red, pos = vector(1,0,0))
-
按F5執行(到此為止確定VPython正常運作)。



bottom of page