Commit 6d014cbe by BellCodeEditor

save project

parent 9177bf85
Showing with 10 additions and 7 deletions
s = {'语文':91,'数学':88,'英语':85} a={"A":44,"B":55,"C":66}
for a,b in s.items() b={"A":66,"B":77,"C":88}
print(a,b) c={"A":100,"B":100,"C":100}
d={"马":a,"依":b,"刘":c}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 for i,k in d.items():
e=d[i]
print(i,end=" ")
for f,g in e.items():
print(f,g,end=" ")
print()
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