Commit 6c6cda84 by BellCodeEditor

save project

parent 2787e079
Showing with 4 additions and 1 deletions
...@@ -2,5 +2,7 @@ dict_hero = {"小猴":100,"猴2":150} ...@@ -2,5 +2,7 @@ dict_hero = {"小猴":100,"猴2":150}
print(dict_hero["猴2"]) print(dict_hero["猴2"])
dict_hero["猴2"] =160 dict_hero["猴2"] =160
print(dict_hero["猴2"]) print(dict_hero["猴2"])
dict_hero["猴3"]=[190] dict_hero["猴3"]=190
print(dict_hero) print(dict_hero)
if "猴3" in dict_hero
print(dict_hero["猴3"])
\ 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