这是我的例子:
class FirstBase(object):
def __init__(self, firstarg):
self.first = firstarg
class SecondBase(object):
def __init__(self, secondarg):
self.second = secondarg
class Child(FirstBase, SecondBase):
def __init__(self, firstarg, secondarg):
FirstBase.__init__(self, firstarg)
SecondBase.__init__(self, secondarg)
问题是我如何使用Child
函数初始化super()
,我知道在这种情况下super().__init__()
只会调用FirstBase
' s { {1}}。