Commit 22504d8c by BellCodeEditor

save project

parent 5268cb18
Showing with 6 additions and 3 deletions
...@@ -3,5 +3,8 @@ b = {"语文":99,"数学":82,"英语":86} ...@@ -3,5 +3,8 @@ b = {"语文":99,"数学":82,"英语":86}
c = {"语文":90,"数学":87,"英语":84} c = {"语文":90,"数学":87,"英语":84}
score = {'悟空':a,'诺依':b,'小贝':c} score = {'悟空':a,'诺依':b,'小贝':c}
name = input("输入名字:") name = input("输入名字:")
for i,j in score[name].items(): if name in score:
print(i,j) for i,j in score[name].items():
\ No newline at end of file print(i,j)
else:
print("错误")
\ 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