Core Python Applications Programming (3rd Edition) cover

Core Python Applications Programming (3rd Edition)

Rating 4.1
Chapters
22
ISBN
9787115414779

Tags

Summary

This is the 3rd edition of the long-bestselling Core Python series, corresponding to the English original Core Python Applications Programming (3rd Edition). Unlike introductory books focused on syntax, it assumes readers already know basic Python syntax and focuses on "what to do with it": the book is divided into three parts and 15 chapters, broadly following three threads—general applications, Web development, and supplementary/lab material. Part 1, "General Application Topics," is the main body, covering regular expressions and the re module; socket-based TCP/UDP network programming (with brief introductions to SocketServer and Twisted); Internet client protocols such as FTP/NNTP/SMTP/POP3/IMAP4; multithreading and the queue module; Tkinter-based GUI programming; DB-API and ORMs plus non-relational databases exemplified by MongoDB; operating Excel/Word/PowerPoint/Outlook via COM clients; and writing Python extensions in C. Part 2, "Web Development," covers Web clients and HTTP servers; CGI and WSGI; a Django framework primer with a blog example; Google App Engine cloud computing; and a Web services chapter calling online services such as Yahoo! Finance and Twitter. Part 3 is supplementary and lab-oriented, covering CSV, JSON, XML text processing and XML-RPC, with brief discussion of topics such as Jython. Each chapter has exercises from beginner to intermediate difficulty, and appendices provide answers to selected exercises, reference tables, and notes on Python 3's evolution and migration from Python 2.

Editor's review

很多Python书教你语法,这本书教你「接到一个真实需求时,去哪里找标准库和第三方库把活干完」。正则、套接字、多线程、数据库、Office自动化、Django、WSGI、App Engine,一张清单列全了应用开发的常用场景,每一块都给出可运行的最小示例和延伸阅读方向。它的定位不是深挖原理,而是快速建立「这个问题该用哪个模块」的地图,所以常被形容为Python开发者的工具箱手册,适合在入门之后、独立做项目之前读一遍。 阅读时有两点需要留心:一是书中示例涉及的部分在线服务与第三方接口(如早期的社交平台API、App Engine旧版运行时)如今已发生变化,照搬代码可能跑不通,应以理解思路为主;二是本书中文版译文较为生硬,个别段落和代码注释读起来吃力,遇到费解处可对照英文原版或官方文档。想彻底吃透,建议搭配同社出版的《Python核心编程(第3版)习题解答》,把每章末的练习真正写一遍。

Who it's for

A good fit for

  • 已掌握Python基本语法、想系统补齐实战技能的自学者
  • 需要快速了解网络、并发、数据库、Web各方向入门路径的开发者
  • 把Python用于办公自动化(Excel/Word/Outlook)的职场人士
  • 计算机专业学生作为课程之外的工程实践读物

Not a good fit for

  • 完全没有编程基础的零起点读者,建议先读Python入门书
  • 只想深入语言内部机制与性能优化原理的高级开发者
  • 希望拿到能直接上线的现代Web项目代码的读者

Reading tips

  1. 先通读目录,按需挑章:做后端重点读第9—13章,做工具脚本重点读第1—5章。
  2. 每章末练习务必动手完成,可配合《习题解答》核对思路而非只看答案。
  3. 示例中的在线服务与第三方库可能已过时,以官方文档现行版本为准改写。
  4. 遇到译文晦涩处对照英文原版 Core Python Applications Programming 阅读。

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 Web Programming: CGI and WSGI
  13. Chapter 11 Web Frameworks: Django
  14. Chapter 12 Cloud Computing: Google App Engine
  15. Chapter 13 Web Services
  16. Part 3 Supplementary/Lab Chapters
  17. Chapter 14 Text Processing
  18. Chapter 15 Other Topics
  19. Appendix A Answers to Selected Exercises
  20. Appendix B Reference Tables
  21. Appendix C Python 3: The Product of a Programming Language's Evolution
  22. Appendix D Migrating to Python 3 with Python 2.6+

FAQ

这本书适合零基础学Python吗?
不太适合。本书原名 Core Python Applications Programming,作者在前言中说明读者应已具备Python基本语法知识,内容从正则表达式、套接字等应用主题讲起。零基础读者建议先读《Python编程:从入门到实践》或《Python基础教程》,再来读这本。
第3版和第2版有什么不同?
第3版全书的重点从语言本身转向应用开发,拆为通用应用、Web开发、补充实验三部分,新增Web服务器网关接口WSGI、Django、Google App Engine、MongoDB、Twitter等主题,并增加了第11、12、14章等新章节,示例也改为基于Python 3。
书中的代码现在还能跑通吗?
大部分标准库示例仍可运行,但涉及早期社交平台API、Google App Engine旧运行时、部分第三方库接口的示例已经失效或改动较大。建议理解思路后,按当前官方文档重写相应代码,不必纠结于原样复现。
有没有配套的习题答案?
有。人民邮电出版社2020年出版了《Python核心编程(第3版)习题解答》,ISBN 9787115548016,章节与主书一一对应,每章先梳理知识点,再给出练习的分析与解答。书末附录也提供了部分练习参考答案。
这本书有配套的英文原版吗?
有。人民邮电出版社同期推出了《Python核心编程(第3版)英文版》,ISBN 9787115413529。英文原版 Core Python Applications Programming(3rd Edition)于2012年由Prentice Hall出版,遇到译文难懂之处可以对照阅读。

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.

Top rated in the same category