From e879516f0f1a22780058c3d07825e836d5c22fef Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 25 Dec 2021 11:49:34 +0800
Subject: [PATCH] save project

---
 diy1.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/diy1.py b/diy1.py
index 4a5149e..57e4f66 100644
--- a/diy1.py
+++ b/diy1.py
@@ -12,5 +12,7 @@ print(list_hero)
 '''
 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
 dict_hero={'猴三':10,'猴一:'21,'猴五':22,'猴队长':29,'猴七':30}
-dict_hero['猴队长']=35
-print(dict_hero)
\ No newline at end of file
+if '猴队长' in dict_hero : 
+    dict_hero['猴队长']=100
+else:
+    dict_hero['猴队长']=50
\ No newline at end of file
--
libgit2 0.25.0