Python的超级()如何处理多重继承?
super()
class First(object): def __init__(self): print "first"class Second(object): def __init__(self): print "second"class Third(First, Second): def __init__(self): super(Third, self).__init__() print "that's it"
Third()
白猪掌柜的
慕码人2483693
相关分类