Python Language and Its Applications cover

Python Language and Its Applications

Rating 4.2
Chapters
29
Series
Turing Programming Series: Python Series
ISBN
9787115407092

Tags

Summary

This book is the Chinese edition of O'Reilly's classic Python introduction Introducing Python, written by Bill Lubanovic and based on Python 3.x, aimed at programming beginners while also accommodating readers with a background in other languages. Structurally, the book is divided into two major parts, "Python Basics" and "Python in Practice": the former explains core syntax and data structures progressively, including variables and names, numbers, if statements, strings, while and for loops, tuples and lists, dictionaries and sets, functions, objects and classes, and modules and packages; the latter applies language knowledge to practical scenarios, covering data processing, calendars and clocks, files and directories, processes and concurrency, data persistence, network programming, web development, and Python's applications in art, work, and scientific computing, and discusses Python's distinctive coding style and idioms. The author combines tutorials with "cookbook"-style examples, and each chapter includes exercises and reference answers, helping readers learn by doing, build a complete Python knowledge system, and use the standard library and excellent third-party packages to solve real problems. Suitable for readers who want a systematic introduction to Python 3 and quick application experience.

Editor's review

这是一本被读者称为“Python 百科全书”的入门书。它最大的好处是“全而不散”:前半本把语法、数据结构、函数、类、模块按学习顺序铺开,后半本则不满足于语法练习,而是直接带你处理文件、连接数据库、抓取网页、写 Web 服务、做科学计算,让“学过”真正变成“用过”。作者的写法通俗、带点幽默,例子往往来自真实开发经验,读起来不像教材;每章末尾的练习和附录里的答案,又让它具备教材的自学功能。第 1 版豆瓣评分 8.5,口碑经受了时间检验。如果你只想买一本既能系统打基础、又能随时查漏补缺的 Python 书,它是稳妥之选;需要注意本书基于 Python 3 撰写,早期版本部分示例已不适用于当下的库版本,动手时以官方文档为准。

Who it's for

A good fit for

  • 零基础但想系统学习 Python 3 的编程新手
  • 会其他语言、想快速掌握 Python 风格与常用库的开发者
  • 需要一本可长期查阅、兼顾基础与应用的案头参考书的人
  • 希望把 Python 用在数据、网络、Web 或科研场景的学生与从业者

Not a good fit for

  • 只想速成某个框架(如 Django、PyTorch)而不关心语言基础的读者
  • 寻找算法竞赛、刷题技巧或面试八股类内容的人
  • 追求最新 Python 版本与新版库 API 的资深工程师

Reading tips

  1. 先通读第 1~11 章建立语法骨架,配合每章练习动手敲代码,不要只看不练。
  2. 进入第 12 章后按自己的方向挑选章节精读,如做数据看第 12、22 章,做后端看第 16~18 章。
  3. 书中的第三方库示例可能随版本变化,动手时对照官方文档核实参数与接口。
  4. 把附录 E 速查表打印出来放在手边,用于日常写代码时快速回顾语法。

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 Python Basics
  2. Chapter 1 A Taste of Python
  3. Chapter 2 Data: Types, Values, Variables, and Names
  4. Chapter 3 Numbers
  5. Chapter 4 if Statements
  6. Chapter 5 Strings
  7. Chapter 6 while Loops and for Loops
  8. Chapter 7 Tuples and Lists
  9. Chapter 8 Dictionaries and Sets
  10. Chapter 9 Functions
  11. Chapter 10 Objects and Classes
  12. Chapter 11 Modules, Packages, and Goodies
  13. Part II Python in Practice
  14. Chapter 12 Data Processing
  15. Chapter 13 Calendars and Clocks
  16. Chapter 14 Files and Directories
  17. Chapter 15 Processes and Concurrency
  18. Chapter 16 Persistent Storage
  19. Chapter 17 Networks
  20. Chapter 18 Web
  21. Chapter 19 Becoming a Pythonista
  22. Chapter 20 Python in Art
  23. Chapter 21 Python at Work
  24. Chapter 22 Python in Science
  25. Appendix A Computer Hardware and Software Knowledge for Beginning Programmers
  26. Appendix B Installing Python 3
  27. Appendix C The Quite Different async
  28. Appendix D Exercise Answers
  29. Appendix E Quick Reference

FAQ

这本书第 1 版和第 2 版有什么区别?
第 1 版 2016 年出版,译者为丁嘉瑞、梁杰、禹常隆,ISBN 为 9787115407092;第 2 版 2022 年出版,由门佳翻译,ISBN 为 9787115586223,新增 f 字符串、类型提示、云端与机器学习等内容。本页信息对应第 1 版。
零基础能直接读这本书吗?
可以。本书面向初学者设计,从变量、数字、字符串讲起,附录 A 还补充了计算机软硬件常识。但建议至少具备基本的命令行操作经验,遇到不懂的术语及时查证,学习会更顺畅。
书里的代码用的是 Python 2 还是 Python 3?
本书基于 Python 3.x 编写,示例与语法均为 Python 3 风格,附录 B 专门介绍如何安装 Python 3,读者无需担心学到过时的 Python 2 写法。
这本书偏理论还是偏实践?
整体偏实践。前半部分讲语法时会立刻给出可运行示例,后半部分直接进入文件、网络、Web、数据库与科学计算等真实场景,作者更强调“能用起来”而非概念考证。

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