1
這是非常令人沮喪的。我正在嘗試運行一個非常簡單的程序,我甚至無法啓動它。我試圖搜索論壇和谷歌搜索這個具體的錯誤,但我找不到任何東西。無法運行烏龜模塊
這是我寫的:
import turtle as t; t.forward(100)
下面就錯誤:
Traceback (most recent call last):
File "C:/Users/PC/AppData/Local/Programs/Python/Python35-32/dae.py", line 1, in <module>
import turtle as t; t.forward(100)
File "C:/Users/PC/AppData/Local/Programs/Python/Python35-32\turtle.py", line 2, in <module>
turtle.forward(100)
AttributeError: module 'turtle' has no attribute 'forward'
請幫
發佈'turtle.py'的前幾行 – Lav