From c9b801d09001391a8c19f6065e1a97b69f9ebdac Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 6 Aug 2022 10:40:18 +0800 Subject: [PATCH] save project --- diy2.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/diy2.py b/diy2.py index dd28a4d..929629e 100644 --- a/diy2.py +++ b/diy2.py @@ -1,5 +1,6 @@ -score = {'语文':91,'数学':88,'英语':85} -for k,v in score.items(): - print(k,v) - - +student1 = {'语文':91,'数学':88,'英语':85} +student2 = {'语文':97,'数学':98,'英语':90} +student3 = {'语文':95,'数学':100,'英语':93} +score = {'悟空':student1,'诺依':student2,'小贝':student3} +key=input("请输入您需要查询的名字:") +print(score[key]) \ No newline at end of file -- libgit2 0.25.0