调用 库 和 函数 总是出错(AttributeError: moudle 'turtle' has no attribute 'Pen')

版权声明:转载请附上此博客地址,谢谢 https://blog.csdn.net/qq_30796379/article/details/88054816

这是在我使用Python的turtle库是产生的一个错误:

AttributeError: moudle 'turtle' has no attribute 'Pen'

查阅很多资料才知道哪里错了,最终答案

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

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

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

猜你喜欢

转载自blog.csdn.net/qq_30796379/article/details/88054816