From efbd9a29757681a4bf74db6edc8f485f6f729fdc Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 28 Apr 2021 18:25:24 +0800 Subject: [PATCH] save project --- diy2.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/diy2.py b/diy2.py index ba3ec24..c924c5a 100644 --- a/diy2.py +++ b/diy2.py @@ -1,6 +1,9 @@ -score = {'语文':91,'数学':88,'英语':85} -for k,v in score.items(): - print(k,v) -# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 - +student1={"语文":88,"数学":89,"英语":90,} +student2={"语文":88,"数学":89,"英语":90,} +student3={"语文":88,"数学":89,"英语":90,} +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