import turtle
window = turtle.screen()
myTurtle.forward(100)
myTurtle.left(90)
myTurtle.forward(100)
window.mainloop()
當我嘗試使用上面,而不是確保代碼爲什麼,因爲它同我的老師幻燈片,我只是想測試它,我得到這個錯誤爲了我自己。我不斷收到一個錯誤,當我嘗試和進口龜
Traceback (most recent call last):
File "/Users/ruairimangan-cliff/Desktop/Foundations of Computer Programming/week 4/Week 4 'Functions'.py", line 72, in <module>
window = turtle.screen()
AttributeError: 'module' object has no attribute 'screen'