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