Commit aec16236 by BellCodeEditor

save project

parent 4b7b160a
Showing with 32 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85} score1= {'语文':91,'数学':88,'英语':85}
score2= {'语文':89,'数学':38,'英语':78}
score3= {'语文':80,'数学':76,'英语':100}
score = {'悟空':score1,'小贝':score2,'诺依':score3}
name=input("请输入您的名字:")
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
for k,v in score.items(): info=score[name]
for k,v in info.items():
print(k,v) 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