python 报错AttributeError: module 'turtle' has no attribute 'Pen'

1.报错:AttributeError: module ‘turtle’ has no attribute ‘Pen’ 2.原因:项目中有文件命名为turtle,与要导入的模块名冲突 3.解决:修改项目中名为turtle的文件名
相关文章
相关标签/搜索