Core Python Applications Programming (3rd Edition) cover

Core Python Applications Programming (3rd Edition)

Rating 4.0
Word count
903K words
Chapters
22
ISBN
9787115414779

Tags

Summary

Many Python books teach you how to write loops and use list comprehensions, but few tell you how to open a socket, manage threads, connect to a database, or deploy a web service when you actually build a project. Core Python Applications Programming (3rd Edition) fills exactly that gap. The author, Wesley Chun, has long worked in corporate Python training and knows where developers get stuck, so each chapter starts with the motivation, gives runnable examples, and closes with exercises. The book's strength lies in its balance of breadth and practicality: regular expressions, network programming, multithreading, GUI, databases, Office automation, Django, cloud computing—it covers nearly every application area a well-rounded Python developer needs, and the chapters on Django, Google App Engine, and JSON/XML processing were substantially updated in the third edition. Code is given in both Python 2 and Python 3, and the appendices specifically address language evolution and migration, making the book especially useful during the Python 2 to Python 3 transition. The Chinese edition, translated by Sun Boxiang, Li Bin, and Li Han, localizes terminology and examples so the text reads naturally. Note that this is not a beginner's book: the language fundamentals are covered in the second edition, and the third edition moves straight into application topics. For readers who already write Python and want to broaden their engineering horizons, this is a desk reference worth revisiting.

Editor's review

很多Python书教你怎么写循环、怎么用列表推导,却很少告诉你:真的动手写项目时,套接字怎么开、线程怎么管、数据库怎么连、Web服务怎么部署。《Python核心编程(第3版)》正好补上这一段。作者Wesley Chun长期从事Python企业培训,写书时很明白开发者会在哪里卡住,因此每一章都从动机讲起,给出可运行的示例,再用习题收尾。这本书的可贵之处在于广度与实用性的平衡:正则表达式、网络编程、多线程、GUI、数据库、Office自动化、Django、云计算,几乎把一名“技术全面的Python开发人员”需要接触的应用领域都过了一遍,其中Django、Google App Engine、JSON/XML处理等章节在第三版中做了大幅更新。代码同时给出Python 2与Python 3版本,附录还专门讲语言演进与迁移,因此在Python 2向Python 3过渡的年代里格外实用。中文版由孙波翔、李斌、李晗翻译,术语与示例都做了本地化处理,读起来不生硬。需要提醒的是,它并不是零基础入门书:语言基础部分在第二版中,第3版直接进入应用主题。对已经会写Python、想要拓宽工程视野的读者,这是一本可以反复翻阅的案头书。

Who it's for

A good fit for

  • 已掌握Python基础语法、希望系统补齐应用层技能的中级开发者
  • 需要快速查阅网络编程、多线程、数据库等实战写法的工程师
  • 使用Python做后端与Web开发、想系统了解Django与WSGI的读者
  • 习惯通过可运行示例和章末习题自学技术的程序员

Not a good fit for

  • 完全没有编程经验、需要从变量与循环学起的零基础读者
  • 只想要一本Python语法手册或速查表的人
  • 期望深度钻研CPython内部实现与语言设计原理的读者

Reading tips

  1. 先通读第1章正则表达式与第2章网络编程,这两章是后续Web部分的基础。
  2. 不必按顺序读完,可按当前项目需要跳到对应章节,把示例代码在自己机器上跑通。
  3. 每章末的习题务必动手完成,尤其是网络与多线程章节,只有运行才能体会差异。
  4. 阅读时对照附录C、附录D了解Python 2与Python 3的差异,避免照搬过时写法。

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 I 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 II 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 III Supplemental/Experimental Chapters
  17. Chapter 14 Text Processing
  18. Chapter 15 Other Topics
  19. Appendix A Reference Answers to Selected Exercises
  20. Appendix B Reference Tables
  21. Appendix C Python 3: The Evolution of a Programming Language
  22. Appendix D Migrating to Python 3 with Python 2.6+

FAQ

这本书适合零基础学Python吗?
不太适合。第3版直接进入正则表达式、网络编程等应用主题,语言语法基础在第二版中讲授。零基础读者建议先读完《Python编程:从入门到实践》一类入门书,再回到本书。
书里的代码是Python 2还是Python 3?
两者都有。作者在关键示例中同时给出Python 2与Python 3版本,部分代码不加修改即可在两个版本上运行,附录还专门讲解从Python 2.x向Python 3迁移的技巧。
第3版和第二版有什么区别?
第二版偏重语言核心与基础,第3版转向应用层,聚焦正则表达式、网络、多线程、GUI、数据库、Office自动化以及Django、Google App Engine、Web服务等实战主题,并更新了大量示例。
这本书和《流畅的Python》该怎么选?
两者侧重不同。本书讲的是用Python解决网络、数据库、Web等具体领域的工程问题;《流畅的Python》讲的是语言本身的高级特性与Pythonic写法。想拓宽应用面选本书,想打磨语言功底选后者。
有没有配套的习题解答?
有。本书附录A收录了部分练习的参考答案,另有《Python核心编程(第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