使用turtle库时出现AttributeError: module 'turtle' has no attribute 'setup'的解决办法 可能原因是文件名使用了turtle.py,尝试将名称修改为turtleabc.py即可解决