class Base(object): #新式类
def test(self):
print("---Base")
class A(Base):
def test(self):
print("this is A")
class B(Base):
def test(self):
print("this is B")
class C(A, B):
def test3(self):
print("this is C ")
c = C()
c.test() #先从c 中遍历test -> A ->B ->Base

561

被折叠的 条评论
为什么被折叠?



