Commit e7c4e887 by BellCodeEditor

save project

parent 488e7009
Showing with 3 additions and 2 deletions
a={'猴1':20,'猴2':40,'猴3':98}
list_hero = ['小明',30,'小鸡',34,'熊二',50,'熊大',98] list_hero = ['小明',30,'小鸡',34,'熊二',50,'熊大',98]
print(list_hero['熊大'])=100
dict_hero = {'小明':30,'小鸡:34,'熊二':50,'熊大':98} dict_hero = {'小明':30,'小鸡:34,'熊二':50,'熊大':98}
dict_hero['熊大']=100 dict_hero['熊大']=100
print(dict_hero['熊大']) print(dict_hero)
print(len(list_hero)) print(len(list_hero))
print(len(dict_hero)) print(len(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