Commit 46b6fabf by BellCodeEditor

save project

parent 13443638
Showing with 2 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85} score = {'语文':91,'数学':88,'英语':85}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
score{'假如我':100,'可是我':93,'啊对对对':29,'🐟李薄好汉对🐎':86} score={'假如我':100,'可是我':93,'啊对对对':29,'🐟李薄好汉对🐎':86}
for a in score.keys(): for a in score.keys():
print(a) print(a)
for a in score.valuse(): for b in score.values():
print(b) print(b)
for b,c in score.items(): for b,c in score.items():
print(b,c) print(b,c)
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