From f1e10a6491b18ea8b3d8fbc5977c1b66c9a1abe0 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 4 Apr 2021 13:48:37 +0800 Subject: [PATCH] save project --- diy2.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/diy2.py b/diy2.py index 60141ad..c411bd7 100644 --- a/diy2.py +++ b/diy2.py @@ -1,5 +1,10 @@ score = {'语文':91,'数学':88,'英语':85} # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 - +for i in score.keys(): + print(i) +for j in score.values(): + print(j) +for k,v in score.items(): + print(i+":"+str(v)) -- libgit2 0.25.0