Commit 454dff95 by BellCodeEditor

save project

parent 050fbded
Showing with 10 additions and 3 deletions
dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
dict_hero1={'猴三':10,'猴一':21,'猴五':22,'汪世瑜':29,'猴七':30} #dict_hero1={'猴三':10,'猴一':21,'猴五':22,'汪世瑜':29,'猴七':30}
print(dict_hero==dict_hero1) #dict_hero["诗仙"]="李白"
\ No newline at end of file print(dict_hero)
if "猴一" in dict_hero:
dict_hero["猴一"]="李白"
print(dict_hero)
else:
print("啥也没有")
\ 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