Commit 72ea0cc3 by BellCodeEditor

save project

parent 2ef6ebde
Showing with 6 additions and 3 deletions
...@@ -2,9 +2,12 @@ a = {"语文":91,"数学":88,"英语":85} ...@@ -2,9 +2,12 @@ a = {"语文":91,"数学":88,"英语":85}
b = {"语文":99,"数学":82,"英语":86} b = {"语文":99,"数学":82,"英语":86}
c = {"语文":90,"数学":87,"英语":84} c = {"语文":90,"数学":87,"英语":84}
score = {'悟空':a,'诺依':b,'小贝':c} score = {'悟空':a,'诺依':b,'小贝':c}
name = input("输入名字:") while True:
if name in score: name = input("输入名字:")
if name in score:
for i,j in score[name].items(): for i,j in score[name].items():
print(i,j) print(i,j)
else: elif name=="q":
break
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