摘要: class Father: def f1(self): print('hello')class Son(Father): def f1(self): super(Son, self).f1() # super格式:(子类,对象).重写的方法 print('world')obj = Son()obj. 阅读全文
posted @ 2019-12-15 15:47 菜菜_包包 阅读(129) 评论(0) 推荐(0)