Commit 2daf4203 by BellCodeEditor

auto save

parent 5ab88987
Showing with 13 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85} good1 =
good2 = {'语文':113,'数学':114,'英语':111,'科学':113}
good3 = {'语文':123,'数学':124,'英语':121,'科学':123}
a={
'陈大':good1,
'陈二':good2,
'陈三':good3
}
print(a['陈大']['语文'])
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
b=a['陈大']
for i,v in b.items():
print(i,v)
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