Python中AttributeError: 'module' object has no attribute 'xxx'

翻譯以後的問題就是:模塊中沒有xxx屬性。python 通常有兩種狀況翻譯 Person.py:code class Person(object): def Do(self,sth): print(sth) A.py :對象 import Person class A(object): def ADo(self,sth): Person.Do(sth) if __n
相關文章
相關標籤/搜索