跳到主要内容
学院
初级 代码街区

Python

友好、强大、无处不在。

Python is the friendly, readable language behind data science, AI, automation and countless web services. This track starts from zero but moves fast: install Python 3.14, master its types and data structures, write functions and classes, handle errors and files, then build real tools with HTTP, a command-line interface, automated tests and async code.

Every lesson is short, practical and checked with quizzes, so you learn by doing.

课时
29
时长
4 小时
级别
初级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Write clean, modern Python 3.14 with f-strings, type hints and match
  • Model data with lists, dicts, sets, comprehensions and dataclasses
  • Handle errors and work with files, paths and JSON
  • Set up projects with venv, pip and uv
  • Build command-line tools and call web APIs
  • Test with pytest and run tasks concurrently with asyncio

学习旅程

  1. 1
    第 1 单元

    Getting started

    Install Python 3.14, explore the REPL and run your first script.

    0 / 2
  2. 2
    第 2 单元

    Types and variables

    Name values, do math, convert types and master strings.

    0 / 3
  3. 3
    第 3 单元

    Control flow

    Decide with if and match, repeat with for and while.

    0 / 4
  4. 4
    第 4 单元

    Data structures

    Lists, tuples, dicts and sets, plus comprehensions and unpacking.

    0 / 4
  5. 5
    第 5 单元

    Functions

    Package logic into functions with type hints, flexible arguments and lambdas.

    0 / 3
  6. 6
    第 6 单元

    Objects and classes

    Model your own types with classes, dataclasses, dunder methods and composition.

    0 / 4
  7. 7
    第 7 单元

    Errors, files and modules

    Handle failures, work with files and JSON, and manage projects with venv and uv.

    0 / 4
  8. 8
    第 8 单元

    Practical Python

    Call web APIs, build a CLI, write tests with pytest and go async.

    0 / 5

快速导航