AttributeError: module turtle has no attribute setup+文件重命名

Python文件名不要与库名、函数名相同!!!

出错原因: python文件的名字命名为turtle了或打错了某个模块名(我就是)

解决方案:重命名py文件或删除

给小白看的

通用方法:找到Python文件保存目录,找到该文件,先左键选中,在按下右键,应该可以看到重命名了
AttributeError: module turtle has no attribute setup+文件重命名
如果你使用了pycharm,选中那个文件右键,找到refactor,可以看到rename 这就是重命名了
快捷键是 shift+F6

最后如果还不行,那检查一下代码看那块写错了