Commit d82f0dad by BellCodeEditor

save project

parent 2f1440de
Showing with 8 additions and 6 deletions
score = {'语文':91,'数学':88,'英语':85} a = {'语文':92,'数学':81,'英语':89}
for k,w in score,items(): b = {'语文':91,'数学':82,'英语':87}
print(k,w) c = {'语文':99,'数学':88,'英语':85}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 score={'悟空':a,'诺依':b,'小贝':c}
name = input('名字:')
for k,v in score[name],items():
print(k,v)
\ 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