Commit 36073882 by BellCodeEditor

auto save

parent b289a0f9
Showing with 6 additions and 2 deletions
......@@ -4,8 +4,9 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
a=input("名字:")
for k,v in score.items():
if a==k:
print(k,v)
if a in score:
print(score[a])
break
else:
print("查询错误")
break
......@@ -15,3 +16,6 @@ for k,v in score.items():
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