From 90a1e6eaa00f4188d8e71a437a777b4e0c45b8eb Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 27 Nov 2021 13:42:58 +0800 Subject: [PATCH] save project --- diy2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diy2.py b/diy2.py index 580a059..f950ad1 100644 --- a/diy2.py +++ b/diy2.py @@ -1,6 +1,6 @@ score = {'语文':91,'数学':88,'英语':85} -for i in score: - print(i) +for t,v in score.sitems: + print(t,v) # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 -- libgit2 0.25.0