哪位大神可以幫我看看哪錯了嗎??????
# Enter a code
class Person(object):
? ? def __init__(self,name,gender,course):
? ? ? ? self.name = name
? ? ? ? self.gender = gender
? ? ? ? self.course = course
? ? ? ??
? ? ? ??
class Teacher(person):
? ? def __init__(self, name, gender,
? ? course):
? ? ? ??
? ? super(Teacher,self).__init__(name, gender)
? ? ? ? ? ? self.course
? ? ? ? ? ? ?
teacher = Teacher?
print(teacher.name) # ==> Amy
print(teacher.gender) # ==> girl
print(teacher.course) # ==> chinese
2025-08-21