list:动态序列、常用操作与复杂度意识 | Python

本章覆盖:创建、索引、切片;append、extend、insert;remove、pop、clear;sort 与 sorted 的区别;list 作为动态数组的 CPython 高层实现认知;头部插入删除与尾部 append 的复杂度差异。

本章知识点

  • 创建、索引、切片
  • append、extend、insert
  • remove、pop、clear
  • sort 与 sorted 的区别
  • list 作为动态数组的 CPython 高层实现认知
  • 头部插入删除与尾部 append 的复杂度差异