Commit 620d7674 by BellCodeEditor

save project

parent c52ddbd0
Showing with 8 additions and 0 deletions
...@@ -12,3 +12,11 @@ ...@@ -12,3 +12,11 @@
dict_hero={'猴一':10,'猴二':21,'猴三':22,'猴队长':29,'猴七':30} dict_hero={'猴一':10,'猴二':21,'猴三':22,'猴队长':29,'猴七':30}
print(dict_hero) print(dict_hero)
print(len(dict_hero)) print(len(dict_hero))
dict_hero['猴三']=20
print(dict_hero)
dict_hero['猴六']=36
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