Commit 87a4e83e by BellCodeEditor

save project

parent 8c83fca3
Showing with 0 additions and 5 deletions
...@@ -3,8 +3,3 @@ ...@@ -3,8 +3,3 @@
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={"猴1":10,"猴2":20,"猴3":30} dict_hero={"猴1":10,"猴2":20,"猴3":30}
print(dict_hero) print(dict_hero)
dict_hero["猴4"]=40
print(dict_hero)
if "猴2" in dict_hero:
print(dict_hero["猴2"])
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