From c8d2fff402af29406d137876040e10d3a4d79358 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 23 Oct 2022 17:19:01 +0800 Subject: [PATCH] save project --- quiz.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quiz.py b/quiz.py index 85aa09a..053b8b9 100644 --- a/quiz.py +++ b/quiz.py @@ -1,5 +1,4 @@ -# 直接运行以下代码,说说你的发现: -list_hero=['赵一',30,'丁二',37,'孙五',52,'王猛',89,'周亮',98] + dict_hero = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98} -print(len(list_hero)) +dict_hero['周亮']=100 print(len(dict_hero)) \ No newline at end of file -- libgit2 0.25.0