0
を持っていないのpython3オブジェクトは、私は次のコードが含まれていentities.pyというファイルを、持って何attriubute
>>> import entities
>>> ent = entities.EntityClass()
>>> ent.show_all()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'EntityClass' object has no attribute 'show_all'
show_all
は、明らかにEntityClassの属性である必要があります。 もちろん、これはPython 2で完璧に機能しましたが、私はそれがPython 3の問題であると仮定しています... これに対応する回避策はありますか?
と同じレベルにインデントする必要があります!ありがとうございました! – CosmicRabbitMediaInc