Commit 488e7009 by BellCodeEditor

save project

parent e3a7e2c9
Showing with 6 additions and 2 deletions
list_hero = ['小明',30,'小鸡',34,'小熊',50] list_hero = ['小明',30,'小鸡',34,'熊二',50,'熊大',98]
dict_hero = {'小明':30,'小鸡'':34,'小熊':50} print(list_hero['熊大'])=100
dict_hero = {'小明':30,'小鸡:34,'熊二':50,'熊大':98}
dict_hero['熊大']=100
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