top of page

測試Python 2 + VPython 6 安裝是否成功

 

  1. 執行VPython:點擊桌面圖示 

     

  2. 在出現的視窗中打上:print 'hello world!'











     

  3. 按F5執行(到此為止確定 Python正常運作)。
     

  4. 畫個紅色的球半徑0.15。
    from visual import *
    sphere(radius = .15, color = color.red, pos = vector(1,0,0))
























     

  5. 按F5執行(到此為止確定VPython正常運作)。
     

 

 

bottom of page