Commit e0c878a3 by BellCodeEditor

save project

parent 1cd4402a
Showing with 4 additions and 3 deletions
score = {'语文':81,'数学':80.5,'英语':82.5}
for i,a in score.items():
print(i,a)
score = {'悟空':{'语文':81,'数学':80.5,'英语':82.5}}
# for i,a in score.items():
# print(i,a)
print(score['悟空']['数学'])
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
......
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