Commit ce38698b by BellCodeEditor

save project

parent 8c874bdc
Showing with 9 additions and 6 deletions
score = {'语文':91,'数学':88,'英语':85} score1 = {'语文':91,'数学':88,'英语':85}
for m,c in score.items(): score2 = {'语文':61,'数学':48,'英语':95}
print(m,c) score3 = {'语文':71,'数学':78,'英语':25}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 a={'w':score1,'a':score2,'c':score3}
name=input("m:")
i=a[name]
for k,v in i.items():
print(k,v)
\ No newline at end of file
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