Commit c95100f4 by BellCodeEditor

save project

parent b70f6706
Showing with 2 additions and 0 deletions
...@@ -4,9 +4,11 @@ student3 = {'语文': 95, '数学': 100, '英语': 93} ...@@ -4,9 +4,11 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
x=input("姓名:") x=input("姓名:")
print("-"*20)
if x in score: if x in score:
s=score[x] s=score[x]
for k,v in s.items(): for k,v in s.items():
print(k,v) print(k,v)
print("-"*20)
else: 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