Python 支持多重继承,一个子类可以有多个 ‘直接父类’。这样,就具备了 ‘多个父类’的特点;
容易导致类的整体异常复杂,谨慎使用
class A:
def test1(self):
print('A类')
class B:
def test2(self):
print('B类')
class C(A,B):
def test3(self):
print('C类')
C1 = C()
C1.test1()
C1.test2()
C1.test3()



