Commit f5dc4fc5 by BellCodeEditor

save project

parent 0ea626c3
Showing with 23 additions and 0 deletions
score0 = {'语文':96.5,'数学':97,'英语':100}
score1 = {'语文':96.5,'数学':98,'英语':100}
score2 = {'语文':92,'数学':100,'英语':100}
score3 = {'徐若初':score0,'谭旭泽':score1,'王致远':score2}
while True:
print("请输入要查询的名字,退出请输入t")
name = input("名字:")
print("~"*30)
if name in score3:
score3 = score3[name]
for i,q in score3. items():
print(i,q)
elif name == "t":
break
else:
print("查询错误,请输入正确的名字.")
print("~"*30)
print("已退出.")
\ No newline at end of file
score = {'语文':96.5,'数学':97,'英语':100}
for i,q in score. items():
print(i,q)
\ 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