Commit 3c7dd600 by BellCodeEditor

auto save

parent a487f980
Showing with 16 additions and 4 deletions
student1={'语文':91,'数学':97,'英语':98}
student2={'语文':33,'数学':65,'英语':41}
student2={'语文':0,'数学':0,'英语':0}
student3={'语文':97,'数学':96,'英语':100}
score={'张继科':student1,'马龙':student3,'许昕':student2}
name=input("名字:")
info=score[name]
for k,v in info.items():
while True:
print("请输入想要查询的名字,退出请输入f")
name=input("名字:")
print("*" * 30)
if name in score:
info=score[name]
for k,v in info.items():
print(k,v)
print("*" * 30)
elif name == "f":
break
else:
print('查询错误,请输入正确的名字')
print("*" * 30)
print("程序结束")
\ 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