Commit ea945ef4 by BellCodeEditor

save project

parent 016a69e1
Showing with 8 additions and 5 deletions
...@@ -8,8 +8,10 @@ ...@@ -8,8 +8,10 @@
# break # break
#print(list_hero) #print(list_hero)
# 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典 # 请注释掉上面的代码,并在下一行创建一个名为dict_hero的字典
dict_hero={'猴三':10,'猴一':21,'猴五':22,'队猴长':29,'猴七':30} a={'猴三':10,'猴一':21,'猴五':22,'队猴长':29,'猴七':30}
print(dict_hero) print(a)
print(dict_hero['队猴长']) print(a['队猴长'])
dict_hero['队猴长']=100 a['队猴长']=100
print(dict_hero) print(a)
a["馬牛逼"]="1"
print(a)
\ 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