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

  1. Python: getting startedRunning Python, indentation as syntax, variables, and the built-in types you touch in every script.
  2. StringsSlicing, f-strings, the methods you actually use, and why joins beat concatenation in loops.
  3. Lists, dicts and comprehensionsSlicing, mutability gotchas, comprehension syntax, and choosing the right collection for the job.
  4. Functions and modulesArguments, returns, scoping, lambdas, and organizing code into importable modules.
  5. Errors, files and virtualenvsReading tracebacks, using context managers safely, handling JSON, and keeping dependencies isolated.

Last refreshed 2026-09-17.