摘要: 私有属性和私有方法不能继承,常见的单层继承、多层继承、多继承 单层继承: class A(object): def aMet(self): print("A类中")class B(A): def bMet(self): print("B类中")b=B()print(b.aMet(),b.bMet() 阅读全文
posted @ 2021-05-31 10:03 LCX测试小姐姐 阅读(74) 评论(0) 推荐(0) 编辑