其他分享
首页 > 其他分享> > 2022/8/5

2022/8/5

作者:互联网

python之多继承:

一个子类可以有多个父类

class father:
    def demo(self):
        pass
    def test(self):
        pass
class mother:
    def demo(self):
        pass
    def test(self):
        pass
class son(father,mother):
    pass
View Code

 

标签:demo,self,mother,2022,pass,class,def
来源: https://www.cnblogs.com/-ark/p/16552934.html