diff --git a/diy2.py b/diy2.py index 60141ad..3967350 100644 --- a/diy2.py +++ b/diy2.py @@ -1,5 +1,7 @@ score = {'语文':91,'数学':88,'英语':85} # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 +for i,x in score.items(): + print(i,':',x)