Python继承 继承实例: 父类和子类的关系: 继承树: 没有父类就继承object类,不要忘记调用super().__init__来初始化父类 代码: class Person(object): def __init__(self, name, gender): self.name = name; self.gender = gender; class Student(Person): def __init__(self, name, gender ,score): super(Studen…