Commit ff09f81b by BellCodeEditor

save project

parent f4f2afb4
Showing with 10 additions and 5 deletions
score = {'语文':91,'数学':88,'英语':85} a1 = {'语文':91,'数学':88,'英语':85}
a2 = {'语文':80,'数学':97,'英语':100}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 a3 = {'语文':96,'数学':99,'英语':92}
a4 = {'语文':97,'数学':100,'英语':91}
score = {'李振宇':a1,'王学承':a2,'李佳乐':a3,'孟彦祖':a4}
a = input('请输入您要搜索的名字。')
info = score[a]
for i in info.items():
print(i)
\ 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