- 562 名前:デフォルトの名無しさん mailto:sage [2016/05/21(土) 04:12:57.81 ID:9rcxhiEb.net]
- class super:
def __init__(self, x, y): self.x = x self.y = y def see(self): print self.x, self.y これがあってtest.pyとして保存して import test class sub(test): def __init__(self, x, y, z): test.super.__init__(self, x, y) self.z = z これを実行するとmodule.__init__() takes at most 2 arguments (3 given)が出て エラーになる意味がわからないんだがなんで?
|

|