Commit 83796989 by BellCodeEditor

save project

parent 3f96ac90
Showing with 2 additions and 1 deletions
...@@ -4,13 +4,14 @@ student3 = {'语文': 95, '数学': 100, '英语': 93} ...@@ -4,13 +4,14 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True : while True :
b = input("名字:") b = input("名字:")
print("*"*30)
if b in score : if b in score :
a = score[b] a = score[b]
for c,d in a.items(): for c,d in a.items():
print(c,d) print(c,d)
else: else:
print("查询错误") print("查询错误")
print("*"*30)
......
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