Commit 8bdf4243 by BellCodeEditor

auto save

parent f0c715f8
Showing with 22 additions and 0 deletions
stuent1 = {'语文':91,'数学':100,'英语':85}
stuent2 = {'语文':97,'数学':98,'英语':90}
stuent3 = {'语文':90,'数学':98,'英语':0}
score = {'悟空':stuent1,'麦子':stuent2,'傻瓜':stuent3}
while True:
print("请输出你的名字,退出输q")
name = input("姓名:")
print("*" * 30)
if name in score:
info = score[name]
for k,v in info.items():
print(k,v)
print("*" * 30)
elif name == "q" :
break
else:
print("查询错误,请重新输")
print("*" * 30)
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