Commit ff4f85e4 by BellCodeEditor

save project

parent 5a705604
Showing with 11 additions and 1 deletions
score = {"王圣":{'语文':91,'数学':88,'英语':85},
"小学生":{'语文':60,'数学':71,'英语':85},
"马东梅":{'语文':73,'数学':87,'英语':54}}
for k,v in score.items():
while True:
print("按下s键退出")
name = input("你要查询的姓名?")
if name == "s":
break
if name in score:
info = score[name]
for k,v in input():
print(k,v)
else:
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