不知道换种写法有啥区别
# __slots__ = ('name','gender','score') # 父类的属性加不加有啥区别
__slots__ = ('score',) #逗号加不加没有区别
def __init__(self,name,gender,score):
# super(Student,self).__init__(name,gender) #这个忘了,前面讲过吗
# self.name = name #父类的属性要不要在做一遍
# self.gender = gender #父类的属性要不要在做一遍
self.score = score