这是一个学生成绩管理系统python的代码,如何实现标题的要求
class GradeManageSystem:
def 登录系统(self):
print('''
******欢迎进入成绩管理系统******
********* 0-退出系统 *********
********* 1-录入成绩 *********
********* 2-查询成绩 *********
''')
def 录入成绩(self):
self.grade = input('录入成绩,格式为:学生1-成绩,学生2-成绩...').split(',')
def 查询成绩(self):
print(self.grade)
gms = GradeManageSystem()
while True:
gms.登录系统()
choice = int(input('请选择您的操作?'))
if choice == 0:
print('欢迎下次使用,bey!')
break
elif choice == 1:
gms.录入成绩()
elif choice == 2:
gms.查询成绩()