Commit 5634d51c by BellCodeEditor

save project

parent 0e1badca
Showing with 8 additions and 4 deletions
score = {'语文':91,'数学':88,'英语':85} a={"语文":98,"数学":91,"英语":89}
for k,v in score.items(): b={"语文":81,"数学":80,"英语":80}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 c={"语文":91,"数学":92,"英语":84}
print(k,v)
score={'悟空':a,'诺一':b,'小贝':c}
name = input("名字:")
for k,v in score[name].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