Commit 45827b15 by BellCodeEditor

auto save

parent b0dc5045
Showing with 6 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85}
for i in score.items():
悟空 = {'语文':91,'数学':88,'英语':85}
小贝 = {'语文':99,'数学':98,'英语':100}
诺依 = {'语文':100,'数学':100,'英语':100}
name = {'wukong':悟空,'xiaobei':小贝,'nuoyi':诺依}
print(name['xiaobei']['数学'])
for i in name.values():
print(i)
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
......
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