Commit 92f2c69f by BellCodeEditor

save project

parent 3ea61957
Showing with 9 additions and 2 deletions
......@@ -5,4 +5,12 @@ dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
print(dict_hero['猴七'])
dict_hero['猴七']=40
print(dict_hero['猴七'])
dict_hero['猴六']=40
\ No newline at end of file
if '猴六' in dict_hero:
print("存在")
else:
print("不存在")
dict_hero['猴六']=40
if '猴六' in dict_hero:
print("存在")
else:
print("不存在")
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