Commit 08295f5e by BellCodeEditor

save project

parent 5dadffd9
Showing with 4 additions and 0 deletions
...@@ -14,5 +14,9 @@ print(dict_hero) ...@@ -14,5 +14,9 @@ print(dict_hero)
if "猴队长" in dict_hero: if "猴队长" in dict_hero:
print(dict_hero["猴队长"]) print(dict_hero["猴队长"])
dict_hero["猴队长"]=32 dict_hero["猴队长"]=32
if not "猴十" in dict_hero:
dict_hero["猴十"]=25
else:
dict_hero["猴十"]=30
print(dict_hero) print(dict_hero)
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