Commit 731523f3 by BellCodeEditor

save project

parent 6d6f8a0f
Showing with 10 additions and 4 deletions
...@@ -4,6 +4,12 @@ st3 = {'语文':95,'数学':100,'英语':93} ...@@ -4,6 +4,12 @@ st3 = {'语文':95,'数学':100,'英语':93}
score = {'悟空':st1,'诺依':st2,'小贝':st3} score = {'悟空':st1,'诺依':st2,'小贝':st3}
n = score[input('名字:')] n = input('名字:')
for k,v in n.items(): print('*' * 15)
print(k,v) if n in score:
\ No newline at end of file score = score[n]
for k,v in score.items():
print(k,v)
print('*' * 15)
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