Commit 49114860 by BellCodeEditor

save project

parent f6cb3c05
Showing with 8 additions and 3 deletions
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} dict_hero={'猴三':10,'猴一':20,'猴五':22,'猴队长':29,'猴七':30}
print(dict_hero['猴一']) print(dict_hero['猴一'])
dict_hero['猴一']=100000 dict_hero['猴一']=14
print(dict_hero['猴一']) print(dict_hero['猴一'])
dict_hero['猴王']=100000
print(dict_hero['猴王']) print(dict_hero['猴王'])
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