Python Programming Development Treasury cover

Python Programming Development Treasury

Rating 4.7
Word count
584 words
Chapters
13
ISBN
9787302472100

Tags

Summary

This book is an advanced tutorial by Dong Fuguo for readers who have some Python foundation and wish to master the language's "inner workings" in depth. It comprises 13 chapters and targets Python 3.5.x, 3.6.x, and 3.7.x, focusing on advanced usage of Python's built-in objects and standard library objects as well as several cutting-edge technical features, involving extension libraries only when necessary. Chapter 1 discusses Python coding conventions and code optimization suggestions, development environment configuration, and pseudo-compilation and packaging of programs; Chapter 2 explains operators and built-in functions in detail; Chapter 3 analyzes various sequence objects, comprehensions, slicing, and sequence unpacking; Chapter 4 covers selection and loop structures and the details of keywords such as else, break, and continue. Chapter 5 expands on every aspect of functions, including callable objects and decorators, function parameters, variable scope, generator functions, lambda expressions, function currying, generic functions, coroutine functions, and callback functions; Chapter 6 explains class definitions, different types of members, dependency injection techniques, and operator overloading. The latter half turns to data processing and engineering practice: Chapter 7 covers string encoding and formatting methods, string object methods, text layout and compression, and technologies related to Chinese character pinyin; Chapter 8 systematically explains regular expression syntax, the re module, regular expression objects, and match objects; Chapters 9 and 10 introduce file object usage, file content operations, and file and folder operations respectively; Chapter 11 covers exception handling structures, doctests and unit tests, coverage testing and software performance testing, and code debugging techniques; Chapter 12 discusses different types of parallel processing techniques; Chapter 13 explains the network communication capabilities provided by asyncio. The book includes 150 case source codes and over a thousand demonstrative code snippets, suitable both as a textbook and as a desk reference for developers.

Editor's review

市面上大量 Python 入门书停留在语法层面,而这本书的定位恰恰相反:面向“已经会写 Python,但想真正吃透 Python”的读者,把内置对象、标准库和语言机制的高阶用法一次讲清楚。 作者的讲法有很强的“干货密度”意识——不靠大量插图凑篇幅,而是用150个案例源代码和上千段演示性代码片段,把序列解包、推导式、修饰器、依赖注入、运算符重载、柯里化、协程函数等容易被教材一笔带过的主题逐一展开。像 else 与循环搭配、变量作用域、可调用对象这类“看着简单、用错就出 bug”的细节,书中都有专门讨论,这是它区别于速成教程的价值所在。 第11至13章把测试、调试、并行处理和 asyncio 异步通信放在一起讲,让读者从“能跑通脚本”过渡到“能写出可维护、可验证、可并发的程序”,这与工程实践的需求相当契合。作者董付国长期在高校讲授 Python,熟悉学生在哪些地方卡壳,书中不少解释正是针对这些痛点而设。 需要提醒的是,本书成书于2017年,示例基于 Python 3.5—3.7,部分语法细节(如 asyncio 的 API 组织、部分标准库接口)在新版本中已有变化。适合当作打地基的经典读物,配合官方文档同步阅读,效果最佳。

Who it's for

A good fit for

  • 已经掌握 Python 基础语法,希望突破“只会写脚本”瓶颈的学习者
  • 计算机专业学生,配合 Python 程序设计课程做进阶读物
  • 需要系统梳理内置对象与标准库用法、准备技术面试的开发者
  • 高校教师,可作为进阶课程或选修课的参考教材

Not a good fit for

  • 完全没有编程基础、需要从变量与循环学起的零起点读者
  • 只希望学习 Django、Pandas 等某个具体框架或库应用的读者
  • 期望内容紧跟 Python 3.12 以上新特性的读者,本书版本较旧

Reading tips

  1. 先通读第1章关于编程规范与代码优化的部分,养成写 Pythonic 代码的习惯,再按章节顺序深入。
  2. 第5、6章内容较密,建议配合书上例子上机改写并运行,理解修饰器、生成器与描述符的实际行为。
  3. 把第9至11章的文件操作、异常处理与测试内容当作工具章节,在写自己的小项目时按需回查。
  4. 阅读第12、13章的并发与 asyncio 时,对照当前 Python 官方文档核对 API 变化,避免沿用旧写法。

About the publisher

Tsinghua University Press China · Founded in 1980

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

  1. Chapter 1: Python Coding Conventions and Code Optimization Tips
  2. Chapter 2: Operators and Built-in Functions
  3. Chapter 3: Sequence Objects, Comprehensions, Slicing, and Sequence Unpacking
  4. Chapter 4: Selection and Loop Structures
  5. Chapter 5: Functions, Decorators, Generators, and Lambda Expressions
  6. Chapter 6: Classes and Objects, Dependency Injection, and Operator Overloading
  7. Chapter 7: String Encoding, Formatting, and Text Processing
  8. Chapter 8: Regular Expressions and the re Module
  9. Chapter 9: File Objects and File Content Operations
  10. Chapter 10: File and Folder Operations
  11. Chapter 11: Exception Handling, Testing, and Code Debugging
  12. Chapter 12: Parallel Processing Techniques
  13. Chapter 13: asyncio and Asynchronous Network Communication

FAQ

这本书适合零基础读者吗?
不太适合。书中默认读者已具备 Python 基础语法知识,直接进入内置对象高级用法、修饰器、依赖注入、asyncio 等内容,零基础读者容易跟不上,建议先用入门教材打底。
书中内容基于哪个 Python 版本?
全书面向 Python 3.5.x、3.6.x 和 3.7.x,2017年出版。若使用 Python 3.10 以上版本阅读,个别标准库接口和 asyncio 用法可能已有变化,需对照官方文档。
和作者的《Python程序设计》教材有什么区别?
《Python程序设计》偏向系统入门与课堂教学,本书则侧重内置对象和标准库的高阶用法与工程技巧,属于同一作者的进阶配套读物,两者可以搭配使用。
书中的案例代码能获取吗?
清华大学出版社为本书提供了配套资源,包括 PPT 课件、案例源代码和视频地址,可在出版社图书详情页的课件下载处获取。
全书篇幅多少,需要多久读完?
正文约387页、58.4万字,共13章。若每天读一章并上机练习,大约三到四周可完成通读,深入实践则建议反复回查。

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.

About the author

董付国 Author

Dong Fuguo is a Chinese author of programming books. Public information about him is limited, and details such as his nationality, education, and professional positions are not recorded in the available sources. The only work currently on record is Python Programming, which is classified under programming design. This work suggests that the author writes for introductory and instructional settings, using the Python language to cover the fundamentals of programming and the core content of program design. Books of this kind typically emphasize clear explanations of concepts and practical, workable examples, helping readers understand programming ideas step by step and put them into practice. Although only one work is available here, making it difficult to form a full picture of the author's writing, the existing information indicates that Dong Fuguo focuses on programming education and offers Chinese readers a useful reference for learning Python programming.

More by the same author

Top rated in the same category