Python Technical Handbook cover

Python Technical Handbook

No rating yet
Word count
710K words
Chapters
14
ISBN
9787517088134

Tags

Summary

This book is a technical tutorial by Lin Hsin-liang (online name Liang-ge-ge) for Python learners, balancing introductory and advanced material. Originally published by GOTOP Information in Taiwan, the simplified Chinese edition was brought out by China Water & Power Press and is commonly known as Python Technical Handbook. The book is based on Python 3.x (examples mainly use Python 3.8) and begins with setting up the environment, then moves through the hands-on path from REPL to IDE, built-in data types and operators, flow statements and functions, modules and classes, class inheritance, exception handling, the open() function and the io module, data structures, data persistence and exchange, common built-in modules (date and time, logging, regular expressions, files and directories), debugging, testing and performance, concurrency, parallelism and asynchrony, and finally closes with advanced topics—attribute control, decorators, metaclasses, relative imports, and generics. The author continues his "study notes/technical handbook" style: knowledge points are compact, illustrated with short example code, with no sprawling large projects; each chapter ends with a "key review," and most chapters include exercises to help readers check their understanding. Accompanying resources include source code, videos, and PPT slides, making it suitable for self-study or as course support material. The book runs about 430 pages and 710,000 characters, in 16mo paperback. It suits readers starting from zero who hope to eventually read the source code of frameworks and libraries.

Editor's review

市面上的Python入门书常常走两个极端:一种堆砌大量项目案例却讲不透语法,另一种只做速查表式的零散罗列。林信良这本介于两者之间,长处在于把Python的“语言机制”讲清楚。从REPL到IDE的过渡、模块与包的查找路径、类与继承的细节、异常与资源管理、迭代器与可哈希对象、装饰器与元类,这些日后读框架文档时会反复遇到的概念,都能在这里找到成体系的说明。作者的写法是“短范例+要点总结”,不靠长篇代码堆气氛,读起来节奏快,适合当工具书反复查。每章的重点复习和课后练习,也为自学或课堂使用提供了抓手。需要提醒的是,本书重点在语言本身,Web、数据分析等方向只是点到附录或零散示例;想要项目实战的读者,最好把它当作语法底座,再搭配一本案例型教材。对于有一点编程经验、想把Python真正学扎实的人,这是一本性价比很高的案头书。

Who it's for

A good fit for

  • 零基础但愿意动手敲代码、想系统学Python的读者
  • 有其他语言基础、想快速补齐Python机制的从业者
  • 需要把Python用于数据处理、自动化与脚本的职场人
  • 在校学生,或把本书作为课程参考书、需要配套练习的读者

Not a good fit for

  • 希望只靠项目案例快速做出Web或数据产品的读者
  • 完全不想配置环境、只想看视频被动学习的读者
  • 寻找Python标准库逐模块速查手册的高级用户

Reading tips

  1. 务必备好Python 3.8以上环境,边读边敲书中的短范例,比只看代码高效得多。
  2. 第1至第9章是主干,建议按顺序读完;第10至第14章可作为工具章节,遇到任务时回头查。
  3. 每章末尾的重点复习与课后练习不要跳过,能迅速暴露对可变对象、作用域、继承等概念的误解。
  4. 读完后搭配一本项目型教材或官方文档的教程部分,把语法落到真实场景。

About the publisher

China Water & Power Press China · Founded in 1956

China Water & Power Press is a science and technology publisher grounded in water conservancy and electric power, while also covering other disciplines. Its publishing areas span popular science, inspirational growth, travel, artificial intelligence, and exam preparation. The collection currently contains 56 titles, including popular science books such as Roaming the Undersea World and Artificial Intelligence Changes the World: Robots Entering Society, language-learning titles such as the "English Reading Made Easy" and "English Writing Made Easy" series and 30 Days to Korean: Learning Korean through Comics, and travel guides such as Practical Illustrated Guides to Seoul and Practical Illustrated Guides to Tokyo. Representative authors include Tian Jiulin, Uni-innovation Foreign Language R&D Center, Lü Meng, Liu Jinchang, Lei Jinliang, and the Research Group on the Transition from Kindergarten to Primary School. Public information is limited; based on the books in the collection, the press emphasizes practicality and readability and has developed certain strengths in popular science, foreign-language learning, and travel and lifestyle books.

Contents

  1. Chapter 1 Getting Started with Python
  2. Chapter 2 From REPL to IDE
  3. Chapter 3 Data Types and Operators
  4. Chapter 4 Flow Statements and Functions
  5. Chapter 5 From Modules to Classes
  6. Chapter 6 Class Inheritance
  7. Chapter 7 Exception Handling
  8. Chapter 8 The open() Function and the io Module
  9. Chapter 9 Data Structures
  10. Chapter 10 Data Persistence and Exchange
  11. Chapter 11 Common Built-in Modules
  12. Chapter 12 Debugging, Testing, and Performance
  13. Chapter 13 Concurrency, Parallelism, and Asynchrony
  14. Chapter 14 Advanced Python Programming (Attribute Control, Decorators, Metaclasses, Relative Imports, Advanced Generics)

FAQ

《Python技术手册》和《Python编程技术手册》是同一本书吗?
是。中国水利水电出版社2020年10月出版的简体版正式书名为《Python编程技术手册》,林信良著,ISBN 9787517088134;图书资料中亦以《Python技术手册》《PYTHON技术手册》作为别名。
这本书适合完全零基础的人吗?
适合,但有前提。书中从安装Python、使用REPL讲起,范例短小,适合零基础起步;不过作者行文偏精简,部分概念(如元类、描述符)不展开铺陈,零基础读者需要配合动手练习和查文档,才不会卡住。
需要读完全书才能写实际项目吗?
不必。第1至第9章读完即可掌握变量、流程、函数、模块、类、异常与文件处理,足以写自动化脚本和小工具;第10章以后可以按需查阅。
书里的代码用的是哪个Python版本?
书中示例基于Python 3.x,安装与讲解以Python 3.8为主,并介绍了从Python 3.0到3.8的发展脉络。在更新的Python 3版本上运行大部分示例依然可行,个别语法新增特性书中未涉及。
和其他Python入门书相比,这本书的特色是什么?
它更像一本“语言机制手册”:讲清模块查找、继承、迭代协议、装饰器等底层规则,章节短、范例短、要点总结明确,适合反复查阅;代价是缺少贯穿全书的大型实战项目。

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.

More by the same author

Top rated in the same category