当我尝试在Mac os上使用python 3.8.3时 此代码:
from turtle import *
shape("turtle")
我得到这个错误:
Traceback (most recent call last):
File "C:\Users\jeeva\Desktop\Tanmay_new\python\pi\Draw_pi\draw_pi.pyw", line 2, in <module>
shape("turtle")
NameError: name 'shape' is not defined
看起来python无法重新确定形状。
请帮帮我
查看是否有模块以外的名为turtle.py的文件。重命名它,然后重试
相关问题 更多 >
编程相关推荐