继承父类为什么要初始化实例属性?
class Student(Person): def __init__(self, name, gender, score): super(Student, self).__init__(name, gender) self.score = score
class Student(Person): def __init__(self, name, gender, score): super(Student, self).__init__(name, gender) self.score = score
2016-09-08
举报