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