Commit 87d81482 by BellCodeEditor

save project

parent 4e00fb6f
Showing with 12 additions and 3 deletions
dict={"我":1,"你":2,"他":3}
print(dict["我"])
dict["我"]=11
\ No newline at end of file
dict["我"]=11
dict["z"]=12
if z in dict
......@@ -9,5 +9,12 @@ for i in range(len(list_hero)):
break
print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero=
dict_hero={"我":1,"你":2,"他":3}
print(dict_hero)
print(dict_hero["我"])
dict_hero["我"]=11
print(dict_hero)
dict_hero["z"]=12
print(dict_hero)
if "z" in dict_hero:
print(dict_hero)
\ 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