Commit 4aa8bc75 by BellCodeEditor

save project

parent 48273a06
Showing with 5 additions and 3 deletions
score = {'语文':91,'数学':88,'英语':85} student1 = {'语文':91,'数学':88,'英语':85}
for k,v in score.items(): student2 = {'语文':32,'数学':65,'英语':54}
print(k,v) student3 = {'语文':13,'数学':21,'英语':56}
info={'wukong':student1,'nuoyi':student2,'bajie':student3}
print(info[wukong],info["nuoyi"],info["bajie"])
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
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