立即学习:https://edu.csdn.net/course/play/26676/338778?utm_source=blogtoedu

list的内部函数中:

append()为添加元素至列表

pop() 默认删除index=-1的值,同时也可以删除指定的值pop(0)就是删除index=0的值

remove()为删除指定的元素,例如remove(‘b')学习笔记(07):Python零基础轻松从入门到实战-列表-2

extend()为用可迭代对象的元素来扩展列表

相关文章:

  • 2021-11-29
  • 2021-08-15
  • 2021-06-30
  • 2022-02-26
  • 2021-11-27
  • 2021-08-21
  • 2021-11-11
  • 2021-11-17
猜你喜欢
  • 2021-11-23
  • 2021-08-09
  • 2021-06-13
  • 2021-07-29
  • 2022-12-23
  • 2021-06-16
  • 2021-04-13
相关资源
相似解决方案