Commit 1efe05ac by BellCodeEditor

save project

parent d0811a10
Showing with 9 additions and 4 deletions
...@@ -10,7 +10,12 @@ ...@@ -10,7 +10,12 @@
# print(list_hero) # print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={"路飞":30,"索隆":40,"卡普":50,"艾斯":60} dict_hero={"路飞":30,"索隆":40,"卡普":50,"艾斯":60}
# print(dict_hero)
# print(dict_hero["艾斯"])
# dict_hero["艾斯"]=70
# print(len(dict_hero))
if "艾斯+1" in dict_hero:
print("存在")
else:
dict_hero["布鲁克"]=80
print(dict_hero) print(dict_hero)
\ No newline at end of file
print(dict_hero["艾斯"])
dict_hero["艾斯"]=70
print(len(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