Commit e4e494bb by BellCodeEditor

save project

parent 4a399277
Showing with 7 additions and 4 deletions
...@@ -2,7 +2,9 @@ goods1 = {'语文':91,'数学':88,'英语':85} ...@@ -2,7 +2,9 @@ goods1 = {'语文':91,'数学':88,'英语':85}
goods2 = {'语文':97,'数学':98,'英语':90} goods2 = {'语文':97,'数学':98,'英语':90}
goods3 = {'语文':95,'数学':100,'英语':93} goods3 = {'语文':95,'数学':100,'英语':93}
score={'悟空':goods1,'诺伊':goods2,'小贝':goods3} score={'悟空':goods1,'诺伊':goods2,'小贝':goods3}
for i,j in score.items(): name=input("请输入你的名字:")
print(score[i]['语文']) if name in score:
print(score[i]['数学']) info=score[name]
print(score[i]['英语']) print(goods1)
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