Commit c5b40b1c by BellCodeEditor

save project

parent 48a9bbc9
Showing with 7 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85}
for k,v in score.items():
score1 = {'语文':91,'数学':78,'英语':79}
score2 = {'语文':100,'数学':91,'英语':89}
score3 = {'语文':80,'数学':99,'英语':100}
student = {'悟空':score1,'诺伊':score2,'小贝':score3}
name = input("查询名字:")
info = student[name]
for k,v in info.items():
print(k,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