Commit 9bed2dc3 by BellCodeEditor

auto save

parent dac91662
Showing with 3 additions and 2 deletions
...@@ -10,5 +10,6 @@ ...@@ -10,5 +10,6 @@
# print(list_hero) # print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={"张三":99,"李四":44,"王五":77} dict_hero={"张三":99,"李四":44,"王五":77}
dict_hero["张三"]=33 if "张三" in dict_hero:
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