本知识库为基于模型知识整理的学习产物。以下来源按权威度分级;带 ⭐ 为建议购买/精读的一手资源。引用版本特性与 PEP 编号时,请以对应官方页面为准。
官方文档(权威层)
| 资源 | 地址 | 用途 |
|---|---|---|
| Python 官方教程(中文) | https://docs.python.org/zh-cn/3/tutorial/ | 阶段一、二对照读 |
| 语言参考 & 数据模型 | https://docs.python.org/zh-cn/3/reference/datamodel.html | kp-019/027 的原文 |
| 标准库文档 | https://docs.python.org/zh-cn/3/library/ | kp-022/038 速查 |
| What's New(各版本) | https://docs.python.org/zh-cn/3/whatsnew/ | kp-039/040 时效核对 |
| PEP 索引 | https://peps.python.org/ | kp-046;PEP 8/20/484/557/695/703 |
| Packaging User Guide | https://packaging.python.org/ | kp-021/036 权威指南 |
| asyncio / concurrent.futures | https://docs.python.org/zh-cn/3/library/asyncio.html | kp-029~032 |
工具链官方文档
| 资源 | 地址 | 对应知识点 |
|---|---|---|
| uv | https://docs.astral.sh/uv/ | kp-002/021/036 |
| pytest | https://docs.pytest.org/ | kp-035 |
| ruff | https://docs.astral.sh/ruff/ | kp-045 |
| mypy | https://mypy.readthedocs.io/ | kp-026 |
| Pydantic | https://docs.pydantic.dev/ | kp-020/042 |
| FastAPI | https://fastapi.tiangolo.com/zh/ | kp-042 |
| NumPy / pandas / Polars | https://numpy.org/ · https://pandas.pydata.org/ · https://docs.pola.rs/ | kp-041 |
| PyTorch / HuggingFace | https://pytorch.org/ · https://huggingface.co/learn | kp-044 |
书籍(深度层)
- ⭐ 《Fluent Python》第 2 版(Luciano Ramalho)——对象模型与标准库的"为什么",本知识库阶段二、三的第一延伸读物。
- ⭐ 《Effective Python》(Brett Slatkin)——90 条 Item 式的最佳实践,适合阶段二完成后查漏。
- 《Python Cookbook》第 3 版(David Beazley)——配方式进阶案例。
- 《CPython Internals》(Anthony Shaw)——解释器内部,kp-029/033/039 的深潜路线。
- 《High Performance Python》第 2 版(Micha Gorelick & Ian Ozsvald)——kp-034 的完整展开。
社区资源(时效层)
| 资源 | 地址 | 用途 |
|---|---|---|
| Python Discourse | https://discuss.python.org/ | PEP 与特性的第一手讨论 |
| Real Python | https://realpython.com/ | 高质量英文教程站 |
| wtfpython | https://github.com/satwikkansal/wtfpython | 陷阱集(kp-047 的扩展) |
| PyMOTW | https://pymotw.com/ | 标准库逐模块教程 |
| awesome-python | https://github.com/vinta/awesome-python | 生态目录 |
免费系统课程
- CS50P(Harvard,Python 入门):https://cs50.harvard.edu/python/
- HuggingFace Course(NLP/LLM):https://huggingface.co/learn
- Automate the Boring Stuff with Python(自动化方向):https://automatetheboringstuff.com/
使用建议
- 核对时效:kp-039/040/041/044 属快速演化区,引用前 5 分钟核对官方 What's New 与项目文档。
- 逐级深入:先本知识库建立地图 → 遇到卡点去官方文档 → 需要体系化再读 ⭐ 书。
- 英文优先:官方中文文档为社区翻译,与英文版可能存在滞后;关键 API 细节以英文版为准。