From 3096c22b24ef85efe16d5a0b8cf58e18f6408422 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 20 Aug 2022 14:51:23 +0800 Subject: [PATCH] save project --- diy2.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/diy2.py b/diy2.py index 60141ad..f6306ba 100644 --- a/diy2.py +++ b/diy2.py @@ -1,5 +1,7 @@ score = {'语文':91,'数学':88,'英语':85} # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 - - +for i in score: + data = score[i] + print(i ,':',data) + \ No newline at end of file -- libgit2 0.25.0