Commit f53b632f by BellCodeEditor

save project

parent a6448a0b
Showing with 9 additions and 4 deletions
score = {'语文':91,'数学':88,'英语':85} s1 = {'语文':91,'数学':88,'英语':85}
for a,b in score.items(): s2 = {'语文':61,'数学':78,'英语':95}
print(a,b) s3 = {'语文':41,'数学':68,'英语':75}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 score={"wk":s1,"w2":s2,"w3":s3}
name=input("名字")
a=score[name]
for k,e in a.items():
print(k,e)
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