摘要: 1. Python的继承以及调用父类成员 python子类调用父类成员有2种方法,分别是普通方法和super方法 假设Base是基类 class Base(object): def __init__(self): print “Base init” 则普通方法如下 class Leaf(Base): 阅读全文
posted @ 2017-11-02 14:37 Benson.Cai 阅读(2420) 评论(1) 推荐(3) 编辑