Commit 816d8ad8 by BellCodeEditor

save project

parent 472b0116
Showing with 8 additions and 4 deletions
score = {'语文':91,'数学':88,'英语':85}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
for k,v in score.items():
s1 = {'语文':91,'数学':88,'英语':85}
s2 = {'语文':90,'数学':99,'英语':96}
s3 = {'语文':86,'数学':76,'英语':82}
score = {'悟空':s1,'曹煜临':s2,'小贝':s3}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出
name=input("请输入您的名字")
a=score[name]
for k,v in a.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