Core Python Programming (3rd Edition) cover

Core Python Programming (3rd Edition)

Rating 3.9
Word count
903K words
Chapters
18
ISBN
9787115414779

Tags

Summary

This book is a fully updated edition of the long-bestselling Core Python Programming (2nd Edition), aimed at intermediate developers who already know basic Python syntax and want to systematically strengthen their practical skills. The book is divided into three parts by theme. Part 1 focuses on general application development, covering regular expressions and their implementation in the re module, network and socket programming, Internet client programming, multithreading and concurrency, GUI programming, database access, Microsoft Office automation, and extending Python with C. Part 2 turns to web development, explaining web clients and servers, CGI and WSGI programming, using the Django framework, cloud computing platforms such as Google App Engine, and methods for building advanced web services. Part 3 serves as supplementary and lab chapters, discussing topics such as text processing and non-relational databases, and addressing cross-version migration between Python 2 and Python 3. The book does not settle for listing syntax but organizes its content around "how to use Python to solve real problems": each chapter starts from a requirement, provides runnable code examples with explanations, and reinforces understanding with end-of-chapter exercises. The author, Wesley Chun, has long worked in Python teaching and engineering practice; his writing progresses from shallow to deep, and he gives dedicated explanations of easily confused details (such as the difference between match and search, when to encode and decode, and choosing between threads and processes). The book is therefore better suited as a "second Python book," helping readers move from writing scripts to designing complete modules and applications. The content accommodates both Python 2 and Python 3 readers, but some environments and dependencies in the network programming and web framework chapters are now dated, and readers need to make choices in light of current mainstream technology stacks.

Editor's review

在Python图书市场上,入门书很多,能把“会写Python”真正带到“会用Python做工程”的书却不多。《Python核心编程(第3版)》正好填在这段爬坡路上。它不重复讲变量、循环、类这些基础概念,而是直接带读者进入正则解析、套接字通信、多线程调度、数据库访问、Office自动化等真实场景,把一个语言能力还原成一项项可交付的工作成果。 本书的编排很有“工具箱”气质:每一章都相对独立,遇到具体任务时可以单章查阅,通读下来又能拼成完整的知识地图。作者在细节上很舍得下功夫,例如把正则表达式的元字符体系讲成一张对照表,把match与search、贪婪与懒惰的差异用例子摆清楚,这些内容对实际调试的助益远超一些大而全的手册。 需要提醒的是,本书成书较早,Django、云平台、Python 2/3 并存的语境今天看来已不新鲜,配套示例的环境可能跑不起来。理性的读法是把它当作“方法论与经典范式”的教材:学思路、学结构、学设计取舍,具体API则交给官方文档。对已有一两年Python经验、准备往全栈或自动化方向走的读者,它仍是性价比很高的案头书。

Who it's for

A good fit for

  • 已掌握Python基本语法、需要补上工程实战能力的中级开发者
  • 从事运维、数据分析或测试工作,想用Python做自动化与脚本集成的人员
  • 准备学习Web开发,希望了解服务器、WSGI与Web框架整体脉络的读者
  • 把本书当作工具书、按主题查阅的计算机专业学生与教师

Not a good fit for

  • 完全没有编程基础的零起点读者,本书不讲解变量、循环等入门内容
  • 只想学习当前主流Python 3及最新框架版本用法、追求与当代技术栈同步的读者
  • 以数据科学或人工智能为主要方向、希望用Python做建模分析的读者

Reading tips

  1. 先通读第1章、第2章和第4章,把正则、网络、线程这三块基础打牢,其余章节可按需跳读。
  2. 动手敲完示例并改写参数,尤其正则与Socket部分,只读不写几乎无法形成直觉。
  3. 遇到Django、云计算等过时示例,以理解架构思路为主,具体API另查当前官方文档。
  4. 每章读完用章末练习自测,并尝试将示例改写成一个小工具,纳入自己的代码库。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Part 1 General Application Topics
  2. Chapter 1 Regular Expressions
  3. Chapter 2 Network Programming
  4. Chapter 3 Internet Client Programming
  5. Chapter 4 Multithreaded Programming
  6. Chapter 5 GUI Programming
  7. Chapter 6 Database Programming
  8. Chapter 7 Microsoft Office Programming
  9. Chapter 8 Extending Python
  10. Part 2 Web Development
  11. Chapter 9 Web Clients and Servers
  12. Chapter 10 CGI and WSGI-Related Web Programming
  13. Chapter 11 The Django Web Framework
  14. Chapter 12 Cloud Computing
  15. Chapter 13 Advanced Web Services
  16. Part 3 Supplementary and Lab Chapters
  17. Chapter 14 Text Processing
  18. Chapter 15 Other Topics and Cross-Version Migration

FAQ

这本书适合零基础学Python吗?
不适合。本书定位是中高级读者的进阶书,默认你已熟悉Python的语法、函数、类与模块,直接从正则表达式和应用开发讲起,零基础读者应先看一本入门教程再来。
第3版和第2版有什么区别?
第3版把全书重组为通用应用、Web开发、补充实验三部分,新增了Django框架、云计算、高级Web服务、Office编程等章节,旧版中大量基础语法讲解被移出,整体更偏实战应用。
书中的代码用Python 2还是Python 3?
作者有意兼顾两个版本,多数示例在Python 2和Python 3下都能正常运行,并会对差异处加以说明。但书中部分第三方库与环境已很陈旧,实践时建议以Python 3为主。
现在读这本书会不会过时?
作为方法论读物仍有价值,网络编程、多线程、正则、数据库等章节的范式至今适用;但Django版本、云平台和部分库的示例已明显落伍,需结合最新文档替换实践环境。
需要配合习题解答一起买吗?
习题解答是单独出版的配套书,按第3版章末练习逐题讲解,自学且希望系统验证理解时可以入手,有老师或项目可练的读者则可先省略。

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