lass Person(object):#父类
    def __init__(self, name, gender):
        self.name = name
        self.gender = gender

class Teacher(Person):#子类

    def __init__(self, name, gender, course):#构造函数要给出父类原来的参数和子类新的参数
        super(Teacher, self).__init__(name, gender)#super函数只需给出父类原来的参数
        self.course=course#构造函数只需构造新的参数

t = Teacher('Alice', 'Female', 'English')
print(t.name)
print(t.course)
