From 61a527954d270a6f48852d168f0d57e5f323f8a0 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 16 Oct 2021 14:48:19 +0800 Subject: [PATCH] save project --- diy.py | 3 +++ diy2.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 diy.py diff --git a/diy.py b/diy.py new file mode 100644 index 0000000..f591ae2 --- /dev/null +++ b/diy.py @@ -0,0 +1,3 @@ +s={'语文':91,'数学':88,'英语':85} +for i in s: + print(i) \ No newline at end of file diff --git a/diy2.py b/diy2.py index 60141ad..ba3ec24 100644 --- a/diy2.py +++ b/diy2.py @@ -1,5 +1,6 @@ score = {'语文':91,'数学':88,'英语':85} - +for k,v in score.items(): + print(k,v) # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 -- libgit2 0.25.0