Commit 718211d0 by BellCodeEditor

auto save

parent 92981f4f
Showing with 9 additions and 0 deletions
score = {'语文':91,'数学':88,'英语':85}
score1 = {'语文':100,'数学':98,'英语':88}
score2 = {'语文':95,'数学':80,'英语':75}
student={'悟空':score,'小贝':score1,'诺一':score2}
for i in score.keys():
print(i)
for j in score.values():
print(j)
for j,i in score.items():
print(j,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