Chapter 07
File I/O
文件输入输出
Persistence. open() / with / read / write / append. The shape of every batch data job: read, process, write. Strictly aligned with Automate the Boring Stuff with Python chapter 9.
Strict source: Automate the Boring Stuff with Python ch.9
Note: Browser playgrounds can't open real files (sandbox). Run lessons in WolfCode locally to test file I/O end-to-end.
Lessons in this chapter
- 07.00 Worked ExampleWalkthrough: Write Then Read例题: 写入再读取python-file-io8 min
- 07.01 ExerciseRead CSV-Lite读 CSV 文件python-file-io python-strings python-lists20 min
- 07.02 ExerciseAppend a Log追加日志python-file-io20 min
- 07.03 ExerciseCount Lines数行python-file-io python-loops15 min
- 07.04 HomeworkHomework: Word-Frequency Report作业: 词频报告python-file-io python-strings python-lists45 min