Commit 5200d702 by BellCodeEditor

save project

parent 3b5ea9d8
Showing with 10 additions and 13 deletions
student1={'语文':91,'数学':88,'英语':85}
student2={'语文':89,'数学':98,'英语':94}
student3={'语文':91,'数学':100,'英语':98}
score={'悟空':student1,'诺依':student2,'小贝':student3}
student4={'语文':67,'数学':87,'英语':99}
student5={'语文':75,'数学':83,'英语':68}
score={'悟空':student1,'诺依':student2,'小贝':student3,'王刚':student4,'晓丽':student5}
while True:
print("退出请输入Q")
name=input("名字:")
if name in score :
a=score[name]
if name in score:
score=score[name]
print('*'*30)
for k,v in a.items():
for k,v in score.items():
print(k,v)
print('*'*30)
break
elif name=="Q":
print("已退出程序")
else:
print('输入错误')
print("输入错误")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment