From 816125b5b7bd00030cde8f540ef0b7e970f7d24d Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 26 Aug 2022 10:29:13 +0800 Subject: [PATCH] save project --- diy1.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/diy1.py b/diy1.py index 8b3ab53..d837b6e 100644 --- a/diy1.py +++ b/diy1.py @@ -5,12 +5,12 @@ # for i in range(len(list_hero)): # if i%2==1 and list_hero[i]>=power: # list_hero.insert(i-1,name) - # + # break # print(list_hero) # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 - dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} -a=dict_hero['猴队长'] -dict_hero["猴七"]=32 +dict_hero['猴队长']=100 +w=dict_hero['猴队长'] print(dict_hero) +print(w) \ No newline at end of file -- libgit2 0.25.0