Commit 8bb62991 by BellCodeEditor

save project

parent da1800c2
Showing with 3 additions and 0 deletions
...@@ -3,4 +3,7 @@ ...@@ -3,4 +3,7 @@
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={'赵一':30,'王五':30,'李四':50} dict_hero={'赵一':30,'王五':30,'李四':50}
dict_hero['李四']=100 dict_hero['李四']=100
dict_hero['张三']=10
if '王五' in dict_hero:
print(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