Commit 36d0ceb8 by BellCodeEditor

save project

parent afbc2ea2
Showing with 6 additions and 2 deletions
...@@ -9,4 +9,8 @@ for i in range(len(list_hero)): ...@@ -9,4 +9,8 @@ for i in range(len(list_hero)):
print(list_hero) print(list_hero)
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
dict_hero['猴十']=25 dict_hero['猴十']=25
print(dict_hero) print(dict_hero)
\ No newline at end of file if '猴十' in dict_hero:
print('来吃猴十吧!')
else:
print('饿死吧,挑三拣四的,娇生惯养,臭不要脸,爱吃不吃,不吃拉倒,反正不是我们饿着')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment