Commit 23e01549 by BellCodeEditor

save project

parent d63d989a
Showing with 13 additions and 0 deletions
...@@ -4,4 +4,17 @@ score = {'语文':91,'数学':88,'英语':85} ...@@ -4,4 +4,17 @@ score = {'语文':91,'数学':88,'英语':85}
for i,o in score.items(): for i,o in score.items():
print(i,o) print(i,o)
xuesheng1 = {'语文':10,'数学':20,'英语':30}
xuesheng2 = {'语文':11,'数学':21,'英语':31}
xuesheng3 = {'语文':12,'数学':22,'英语':32}
score = {'悟空':xuesheng1,'小依':xuesheng2,'小贝':xuesheng3}
name = input('名字:')
print('*'*30)
if name in score:
score = score[name]
for k,v in score.items():
print(k,v)
print('*'*30)
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