Commit 045ef9ff by BellCodeEditor

save project

parent 51334e0e
Showing with 6 additions and 2 deletions
...@@ -5,4 +5,8 @@ dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30} ...@@ -5,4 +5,8 @@ dict_hero={'猴三':10,'猴一':21,'猴五':22,'猴队长':29,'猴七':30}
tyt=dict_hero['猴五'] tyt=dict_hero['猴五']
print(tyt) print(tyt)
dict_hero['猴队长']=50 dict_hero['猴队长']=50
print(dict_hero) print(dict_hero)
\ No newline at end of file dict_hero["齐天大圣"]=100
print(dict_hero)
if "齐天大圣" in dict_hero:
print(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