python 報錯AttributeError: module 'turtle' has no attribute 'Pen'

1.報錯:AttributeError: module ‘turtle’ has no attribute ‘Pen’ 2.原因:項目中有文件命名爲turtle,與要導入的模塊名衝突 3.解決:修改項目中名爲turtle的文件名
相關文章
相關標籤/搜索