Professional Python
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已经能用 Python 写脚本,想补齐装饰器、生成器、元类等进阶知识的中级开发者
- 需要设计库、框架或重构老项目,想弄清语言机制边界的工程师
- 被 Unicode 编码、Python 2/3 混用问题反复困扰的维护者
- 想系统了解单元测试、命令行工具与异步编程基础用法的自学者
Not a good fit for
- 完全没有 Python 基础、还在学语法与循环判断的初学者
- 只想找现成案例做数据分析或机器学习的读者
- 需要最新 Python 3.11 及以上异步与类型标注实践的读者
Reading tips
- 先读第1—3章并动手改写自己项目里的装饰器与生成器,再进入类模型部分,顺序阅读收益最大。
- 每章末尾的小结建议读两遍:第一遍理解概念,第二遍对照自己的代码,找出可以替换的写法。
- 第10章 Python 2 与 Python 3、第13章 asyncio 属时代性内容,重点理解设计动机,具体 API 以官方文档为准。
- 配合官方语言参考与标准库文档查阅,遇到版本差异时优先相信当前文档而非书中示例。
About the publisher
Founded in 1980, Tsinghua University Press has 57 titles in our collection, covering popular science, medicine, health, law, philosophy and social sciences. Representative works include medical popular-science books such as Cancer Truth: Doctors Are Reading It Too and New Knowledge on Cancer by Bo Luo (Li Zhizhong), legal titles such as Sunshine Is the Best Preservative: Express Delivery of Major Global Anti-Corruption Cases, and works like Qi Ge's A Brief History of Philosophy with Big Ideas and Liu Yunhao's From the Internet to a New Industrial Revolution. Its authors include science writers, medical researchers, the Renmin University of China anti-corruption master's class and university scholars, reflecting a publishing profile that balances academic seriousness with accessible reading. As public information is limited, this profile is based only on the titles in our collection.
Contents
- Part I Functions
- Chapter 1 Decorators
- Chapter 2 Context Managers
- Chapter 3 Generators
- Part II Classes
- Chapter 4 Magic Methods
- Chapter 5 Metaclasses
- Chapter 6 Class Factories
- Chapter 7 Abstract Base Classes
- Part III Data
- Chapter 8 Strings and Unicode
- Chapter 9 Regular Expressions
- Part IV Other Topics
- Chapter 10 Python 2 and Python 3
- Chapter 11 Unit Testing
- Chapter 12 Command-Line Tools
- Chapter 13 asyncio
- Chapter 14 Code Style
FAQ
这本书适合零基础学 Python 吗?
这本书和 Michał Jaworski 的《Python高级编程(第2版)》是同一本吗?
书里的 Python 2 和 asyncio 内容现在还能用吗?
需要什么基础才能读懂元类和抽象基类那几章?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.