Commit 1ba96bc7 by BellCodeEditor

auto save

parent beeb2280
Showing with 521 additions and 0 deletions
#score = {'语文':91,'数学':88,'英语':85}
#for k,v in score.items():
# print(k,v)
s1 = {"语文":91,"数学":88,"英语":65}
s2 = {"语文":97,"数学":98,"英语":100}
s3 = {"语文":95,"数学":100,"英语":93}
score = {"悟空":s1,"诺伊":s2,"小贝":s3}
while True:
name = input("请输入要查询的人,退出请按q:")
if name == "q":
break
elif name not in score:
print("请重新输入要查询的名字")
else:
for k,v in score[name].items():
print(k,v)
cjz
\ No newline at end of file
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