当前位置:  首页>> 技术小册>> Python合辑7-集合、列表与元组

添加元素:

  1. my_list.append(777)
  2. my_list.insert(1, '888')
  3. # 列表合并
  4. my_list.extend(my_list2)