Person:
(nameage):
()
.name=name
.age=age
():
(.name.age)
Student(Person):
(nameagescore):
(Person).(nameage)
()
.score=score
s1=Student()
(s1.age)
Traceback (most recent call last):
File "D:/pythonProject1/105.py", line 19, in <module>
s1=Student("梅连东",18,90)
File "D:/pythonProject1/105.py", line 13, in __init__
super(Person,self).__init__(self,name,age)
TypeError: object.__init__() takes exactly one argument (the instance to initialize)