In [14]: class A(object):
....: def __init__(self, grade, interest):
....: print "I am an instance of A"
....: self.grade = grade
....: self.interest = interest
....:
In [15]: class B(object):
....: def __init__(self, grade, interest):
....: print "I am an instance of B"
....: self.grade = grade
....: self.interest = interest
....:
In [16]: class C(A, B):
....: def __init__(self, grade, interest):
....: print "I am an instance of C"
....: super(C,self).__init__(grade, interest)
....:
In [17]: c = C("1","football")
I am an instance of C
I am an instance of A
自己编个小例子就可以看到解答了,这样写的“后果”就是B的__init__没有被调用,我试了其他例子,好像python都只用最近的那个父类,比如A。