Commit dc689934 by BellCodeEditor

save project

parent ea59bd2f
Showing with 5 additions and 2 deletions
......@@ -4,11 +4,14 @@ student3= {'语文':87,'数学':68,'英语':89}
score={'悟空':student1,'诺依':student2,'小贝':student3}
while True:
name=input("名字:")
print("退出请输入Q")
if name in score:
a=score[name]
print('*'*30)
for k,v in a.items():
print(k,v)
break
print('*'*30)
elif name=="Q":
print("已退出程序")
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