Python 3
当前主流 Python 版本:从语法到工程实践。
💡
This course has 5 lessons. Start with the first one and use the next / previous links at the bottom of each lesson — the sidebar keeps the whole course in order.
Lessons
- Python: getting startedRunning Python, indentation as syntax, variables, and the built-in types you touch in every script.
- StringsSlicing, f-strings, the methods you actually use, and why joins beat concatenation in loops.
- Lists, dicts and comprehensionsSlicing, mutability gotchas, comprehension syntax, and choosing the right collection for the job.
- Functions and modulesArguments, returns, scoping, lambdas, and organizing code into importable modules.
- Errors, files and virtualenvsReading tracebacks, using context managers safely, handling JSON, and keeping dependencies isolated.
Last refreshed 2026-09-17.