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
- 05.00 Worked ExampleWalkthrough: List Basics例题: 列表入门python-lists8 min
- 05.01 ExerciseList Basics列表入门python-lists python-loops15 min
- 05.02 ExerciseList Comprehension列表推导式python-lists python-loops20 min
- 05.03 ExerciseList Methods列表方法python-lists20 min
- 05.04 HomeworkHomework: Student Grade Report作业: 学生成绩报告python-lists python-functions python-loops45 min