摘要: 通过一段代码来验证子类默认继承父类所有属性和方法 class A(object): def __init__(self): self.num = 1 def info_print(self): print(self.num) # 子类 class B(A): pass result = B() re 阅读全文
posted @ 2020-06-11 17:12 鸡龟骨滚羹 阅读(170) 评论(0) 推荐(0)