摘要: 一、定义 python面对对象的继承指的是多个类之间的所属关系,即子类默认继承父类的所由属性和方法。 class A(object): def __init__(self): self.num=1 def info_print(self): print(self.num) #子类B class B( 阅读全文
posted @ 2020-03-31 10:22 孤岛蓝鲸 阅读(375) 评论(0) 推荐(0) 编辑