W WolfCode · CSC 141
Chapter 05

Lists

列表

The universal container for sequences of values. Create, index, slice, mutate — and the copy-first idiom that saves you from aliasing bugs. List comprehensions compress map+filter into one line. Strictly aligned with Think Python §10.1–§10.12.

Strict source: Think Python §10.1–§10.12

Lessons in this chapter

  1. 05.00 Worked Example
    Walkthrough: List Basics
    例题: 列表入门
    python-lists
    8 min
  2. 05.01 Exercise
    List Basics
    列表入门
    python-lists python-loops
    15 min
  3. 05.02 Exercise
    List Comprehension
    列表推导式
    python-lists python-loops
    20 min
  4. 05.03 Exercise
    List Methods
    列表方法
    python-lists
    20 min
  5. 05.04 Homework
    Homework: Student Grade Report
    作业: 学生成绩报告
    python-lists python-functions python-loops
    45 min