Commit 72ea0cc3 by BellCodeEditor

save project

parent 2ef6ebde
Showing with 9 additions and 7 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("输入名字:")
for i,j in score[name].items(): if name in score:
print(i,j) for i,j in score[name].items():
else: print(i,j)
print("错误") elif name=="q":
\ No newline at end of file break
else:
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