Commit d77c2036 by BellCodeEditor

auto save

parent 48c7ad94
Showing with 3 additions and 2 deletions
...@@ -4,12 +4,13 @@ student3 = {'语文': 95, '数学': 100, '英语': 93} ...@@ -4,12 +4,13 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True: while True:
name=input("请输入名字,退出请按q") name=input("请输入名字,退出请按q")
print( "*"*30)
if name in score: if name in score:
into=score[name] into=score[name]
print( "*"*30)
for k,v in into.items(): for k,v in into.items():
print(k,v) print(k,v)
elif name==("q"): print( "*"*30)
elif name=="q":
break break
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