Commit 209b1b17 by BellCodeEditor

save project

parent 9b4dff6f
Showing with 6 additions and 2 deletions
...@@ -4,10 +4,14 @@ student3 = {'语文':95, '数学':100, '英语':93} ...@@ -4,10 +4,14 @@ student3 = {'语文':95, '数学':100, '英语':93}
score= {'悟空':student1, '诺伊':student2, '小贝':student3} score= {'悟空':student1, '诺伊':student2, '小贝':student3}
name = input("名字: ") name = input("名字: ")
print("退出请按q")
print("*"*10) print("*"*10)
if name in score: while ture:
if name in score:
for a,b in score[name].items(): for a,b in score[name].items():
print(a,b) print(a,b)
print("*"*10) print("*"*10)
else: elif name=="q":
break
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