Commit 763e8f5b by BellCodeEditor

save project

parent 7414a0a9
Showing with 9 additions and 6 deletions
...@@ -2,12 +2,15 @@ a={'语文':91,'数学':250,'英语':250} ...@@ -2,12 +2,15 @@ a={'语文':91,'数学':250,'英语':250}
b={'语文':93,'数学':10,'英语':85} b={'语文':93,'数学':10,'英语':85}
c={'语文':54,'数学':0,'英语':88} c={'语文':54,'数学':0,'英语':88}
score={'悟空':a,'诺依':b,'小贝':c} score={'悟空':a,'诺依':b,'小贝':c}
name=input("名字:") while True:
if name in score: name=input("请输入名字,按q请退出:")
for i,v in score[name].items(): if name=="q":
print("*"*30) break
print(i,v) elif name in score:
else: for i,v in score[name].items():
print("*"*30)
print(i,v)
else:
print("输入错误,请输入名字") 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