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