Commit 3ca5aa53 by BellCodeEditor

save project

parent b9c1d86b
Showing with 17 additions and 0 deletions
student1={'数学':91,'语文':88,'英语':85}
student2={'数学':91,'语文':88,'英语':85}
student3={'数学':91,'语文':88,'英语':85}
score={'悟空':student1,'诺伊':student2,'小贝':student3}
while True:
print('退出q')
name=input('名字:')
print("*"*30)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
print("*"*30)
elif name=='q':
break
else:
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