python中的超继承super
摘要:
#超继承class MathMethod: def __init__(self,a,b): self.a=a self.b=b def add(self): # return self.a+self.b print("我是父类的方法",self.a+self.b) def sub(self): re 阅读全文
posted @ 2020-04-08 22:40 小肥羊要进步 阅读(374) 评论(0) 推荐(0) 编辑