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
相关文章
相关标签/搜索