class Base1:
def show(self):
print('Base1.show')
class Base2:
def show(self):
print('Base2.show')
class Foo(Base1,Base2):
pass
obj = Foo()
obj.show()
结果:
Base1.show
Base2.show
来源:CSDN
作者:ROOOOOOM
链接:https://blog.csdn.net/qq_41228218/article/details/104069147