Python基础 · free preview
Files and JSON
Write and read text files, process them line by line, and save structured data as JSON.
1. Overview
Overview
2. Writing a Text File
Writing a Text File
3. Reading Line by Line
Reading Line by Line
4. Appending to a File
Appending to a File
5. Saving Structured Data as JSON
Saving Structured Data as JSON
6. Write and Count
Write and Count
7. A Record as JSON
A Record as JSON
Practice this interactively
Free account · instant grading · spaced review that schedules itself.
Start this course for free