5
TypeError:module .__ init __()は最大で2つの引数を取ります(3つ指定)
という名前のファイルでクラスを定義しましたObject.py。別のファイルのこのクラスから継承しようとすると、コンストラクターを呼び出すと例外がスローされます。 TypeError: module.__init__() takes at most 2 arguments (3 given) これは私のコードです: import Object class Visitor(Object): pass instance = Visitor() # this line throws the exception 何が悪いのですか?