From 07278f367c994a0bf585c18e1f28834899791f64 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 26 Mar 2023 14:31:35 +0800 Subject: [PATCH] save project --- diy1.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diy1.py b/diy1.py index 40c2aa4..d09e74f 100644 --- a/diy1.py +++ b/diy1.py @@ -10,5 +10,7 @@ for i in range(len(list_hero)): print(list_hero) ''' # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 -dict_hero={'猴三:'10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30'} +dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30'} print(dict_hero) +print(dict_hero["猴队长"]) +print(dict_hero['猴七']=32) -- libgit2 0.25.0