python多继承之先继先承
作者:互联网
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
标签:show,python,self,之先,Base1,Base2,Foo,class,继先 来源: https://blog.csdn.net/qq_41228218/article/details/104069147