第一题
class Preson:
def __init__(self,name,age,gender,english,math,lang):
self.name=name
self.__age=age
self.__gender=gender
self.__english=english
self.__math=math
self.__lang=lang
def secret(self):
print('总分:{},平均分:{},姓名:{},年龄:{},性别:{}'.format(self.__english+self.__math+self.__lang,(self.__english+self.__math+self.__lang)/3,self.name,self.__age,self.__gender))
xiaofang=Preson('小芳',19,'女',98,99,100)
xiaofang.secret()