Commit 3383bcc0 by BellCodeEditor

save project

parent f22cdcec
Showing with 3 additions and 0 deletions
......@@ -3,6 +3,7 @@ student2 = {'语文': 97, '数学': 98, '英语': 90}
student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True:
print("输入'SB'就会退出")
name=input("SB,报上名来!")
if name in score:
a=score[name]
......@@ -10,6 +11,7 @@ while True:
for k,v in a.items():
print(k,v)
print("*"*30)
elif name=="SB":
break
else:
print('输入错误')
\ No newline at end of file
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