From e6b9cd7a9ea592afe35d48b25b0939ff67dc3cb5 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 27 Mar 2021 10:06:19 +0800 Subject: [PATCH] save project --- diy3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diy3.py b/diy3.py index 9a7f683..a0cf407 100644 --- a/diy3.py +++ b/diy3.py @@ -7,4 +7,6 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} name = input("名字:") # 查询并打印出输入的名字对应的所有科目的成绩 - +a=score[name] +for d,s in a.items(): + print(d,s) \ No newline at end of file -- libgit2 0.25.0