每次我放进口乌龟总是这样
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
import turtle
File "C:/Users/Notandi/AppData/Local/Programs/Python/Python35-32\turtle.py", line 2, in <module>
wn = turtle.Screen()
AttributeError: module 'turtle' has no attribute 'Screen'
您命名了一个文件
turtle.py
,特别是这个:因此Python认为该文件是
turtle
模块。选择一个不同的名字。(顺便说一句,你把文件放在那里似乎很奇怪。)好吧,sry,我重新安装了python并修复了它。对我可能造成的所有烦恼表示歉意。在
相关问题 更多 >
编程相关推荐