Python技术手册(第4版,影印版)
Python技术手册(第4版,影印版)
Alex Martelli, Anna Martelli Ravenscroft, Steve Holden, Paul McGuire
出版时间:2023年03月
页数:717
“深入、与时俱进、通俗易懂、实用。这是一本优秀的现代参考手册,充满了大量的深刻见解和建议,无论是新手还是专家,都不会失望。”
——Mark Summerfield
Qtrac有限公司董事

Python最近在TIOBE排行榜上被评为当今最受欢迎的编程语言,这尤其要感谢这门语言在设计、原型、测试、部署、维护方面所展现出来的广泛适用性。在本书最新的第4版中,无论是专业程序员还是需要使用Python来解决特定领域问题的人,都将学会如何将Python发挥到极致。
由公认的Python专家精心策划,新版专注于3.10版本,完全展现了Python语言取得的最新开创性成果,涵盖了最近发布的Python 3.11。
这本便捷的指南将帮助你:
● 学习Python如何将数据和程序表示为对象
● 理解类型注解的价值和用途
● 考察最新版本中出现的各种语言特性
● 揭示如何地道地运用现代Python
● 学习适当地搭建Python项目
● 理解如何测试、调试和优化Python代码
  1. Preface
  2. 1. Introduction to Python
  3. The Python Language
  4. The Python Standard Library and Extension Modules
  5. Python Implementations
  6. Python Development and Versions
  7. Python Resources
  8. Installation
  9. Installing Python from Binaries
  10. Installing Python from Source Code
  11. 2. The Python Interpreter
  12. The python Program
  13. Python Development Environments
  14. Running Python Programs
  15. Running Python in the Browser
  16. 3. The Python Language
  17. Lexical Structure
  18. Data Types
  19. Variables and Other References
  20. Expressions and Operators
  21. Numeric Operations
  22. Sequence Operations
  23. Set Operations
  24. Dictionary Operations
  25. Control Flow Statements
  26. Functions
  27. 4. Object-Oriented Python
  28. Classes and Instances
  29. Special Methods
  30. Decorators
  31. Metaclasses
  32. 5. Type Annotations
  33. History
  34. Type-Checking Utilities
  35. Type Annotation Syntax
  36. The typing Module
  37. Using Type Annotations at Runtime
  38. How to Add Type Annotations to Your Code
  39. Summary
  40. 6. Exceptions
  41. The try Statement
  42. The raise Statement
  43. The with Statement and Context Managers
  44. Generators and Exceptions
  45. Exception Propagation
  46. Exception Objects
  47. Custom Exception Classes
  48. ExceptionGroup and except*
  49. Error-Checking Strategies
  50. The assert Statement
  51. 7. Modules and Packages
  52. Module Objects
  53. Module Loading
  54. Packages
  55. Distribution Utilities (distutils) and setuptools
  56. Python Environments
  57. 8. Core Built-ins and Standard Library Modules
  58. Built-in Types
  59. Built-in Functions
  60. The sys Module
  61. The copy Module
  62. The collections Module
  63. The functools Module
  64. The heapq Module
  65. The argparse Module
  66. The itertools Module
  67. 9. Strings and Things
  68. Methods of String Objects
  69. The string Module
  70. String Formatting
  71. Text Wrapping and Filling
  72. The pprint Module
  73. The reprlib Module
  74. Unicode
  75. 10. Regular Expressions
  76. Regular Expressions and the re Module
  77. Optional Flags
  78. Match Versus Search
  79. Anchoring at String Start and End
  80. Regular Expression Objects
  81. Match Objects
  82. Functions of the re Module
  83. REs and the := Operator
  84. The Third-Party regex Module
  85. 11. File and Text Operations
  86. The io Module
  87. The tempfile Module
  88. Auxiliary Modules for File I/O
  89. In-Memory Files: io.StringIO and io.BytesIO
  90. Archived and Compressed Files
  91. The os Module
  92. The errno Module
  93. The pathlib Module
  94. The stat Module
  95. The filecmp Module
  96. The fnmatch Module
  97. The glob Module
  98. The shutil Module
  99. Text Input and Output
  100. Richer-Text I/O
  101. Internationalization
  102. 12. Persistence and Databases
  103. Serialization
  104. DBM Modules
  105. The Python Database API (DBAPI)
  106. 13. Time Operations
  107. The time Module
  108. The datetime Module
  109. The zoneinfo Module
  110. The dateutil Module
  111. The sched Module
  112. The calendar Module
  113. 14. Customizing Execution
  114. Per-Site Customization
  115. Termination Functions
  116. Dynamic Execution and exec
  117. Internal Types
  118. Garbage Collection
  119. 15. Concurrency: Threads and Processes
  120. Threads in Python
  121. The threading Module
  122. The queue Module
  123. The multiprocessing Module
  124. The concurrent.futures Module
  125. Threaded Program Architecture
  126. Process Environment
  127. Running Other Programs
  128. The mmap Module
  129. 16. Numeric Processing
  130. Floating-Point Values
  131. The math and cmath Modules
  132. The statistics Module
  133. The operator Module
  134. Random and Pseudorandom Numbers
  135. The fractions Module
  136. The decimal Module
  137. Array Processing
  138. 17. Testing, Debugging, and Optimizing
  139. Testing
  140. Debugging
  141. The warnings Module
  142. Optimization
  143. 18. Networking Basics
  144. The Berkeley Socket Interface
  145. Transport Layer Security
  146. SSLContext
  147. 19. Client-Side Network Protocol Modules
  148. Email Protocols
  149. HTTP and URL Clients
  150. Other Network Protocols
  151. 20. Serving HTTP
  152. http.server
  153. WSGI
  154. Python Web Frameworks
  155. 21. Email, MIME, and Other Network Encodings
  156. MIME and Email Format Handling
  157. Encoding Binary Data as ASCII Text
  158. 22. Structured Text: HTML
  159. The html.entities Module
  160. The BeautifulSoup Third-Party Package
  161. Generating HTML
  162. 23. Structured Text: XML
  163. ElementTree
  164. Parsing XML with ElementTree.parse
  165. Building an ElementTree from Scratch
  166. Parsing XML Iteratively
  167. 24. Packaging Programs and Extensions
  168. What We Don’t Cover in This Chapter
  169. A Brief History of Python Packaging
  170. Online Material
  171. 25. Extending and Embedding Classic Python
  172. Online Material
  173. 26. v3.7 to v3.n Migration
  174. Significant Changes in Python Through 3.11
  175. Planning a Python Version Upgrade
  176. Summary
  177. Appendix. New Features and Changes in Python 3.7 Through 3.11
  178. Index
书名:Python技术手册(第4版,影印版)
国内出版社:东南大学出版社
出版时间:2023年03月
页数:717
书号:978-7-5766-0715-4
原版书书名:Python in a Nutshell, 4th Edition
原版书出版商:O'Reilly Media
Alex Martelli
 
Alex Martelli已从事编程40年,最近一半的时间主要使用Python。他写作了本书前两版,参与合著了Python Cookbook前两版和本书第三版。他是Python软件基金会(PSF)成员和核心贡献人(荣誉成员),因对Python社区的贡献获得2002年的Activators’ Choice奖和2006年的Frank Willison纪念奖。他在Stack Overflow上非常活跃,并经常在技术会议上发表演讲。他与妻子Anna在硅谷生活了17年,在此期间一直在Google工作,目前担任Google Cloud技术支持部高级工程师。
 
 
Anna Martelli Ravenscroft
 
Anna Martelli Ravenscroft是Python软件基金会(PSF)成员,因对Python社区的贡献获得2013年的Frank Willison纪念奖。她参与合著了Python Cookbook第二版和本书第三版。她为许多Python书籍担任技术审校,并经常在技术会议上发表演讲和担任分论坛主席。Anna与丈夫Alex、两只狗、一只猫和几只鸡一起生活在硅谷。
 
 
Steve Holden
 
Steve Holden热衷编程和社区工作,自1967年以来一直与计算机打交道,1995年从Python 1.4便开始使用Python。后来,他撰写了关于Python的文章,创建了讲师主导的培训课程,受众遍布全球,还为“不情愿使用Python的用户”制作了40小时的培训视频。作为Python软件基金会的荣誉成员,Steve曾担任基金会董事八年,担任主席三年。他创立了Python社区的国际会议系列PyCon,因对Python社区的服务获得2007年的Frank Willison纪念奖。他居住在英国黑斯廷斯,在英国国际贸易部担任技术架构师,负责维护和监管贸易环境系统。
 
 
Paul McGuire
 
Paul McGuire已经有40多年的编程经验,使用过FORTRAN、Pascal、PL/I、COBOL、Smalltalk、Java、C/C++/C#和Tcl等多种语言,最终在2001年选择Python作为主要语言。他是Python软件基金会(PSF)成员,是广受欢迎的pyparsing模块以及littletable和plusminus的作者和维护者。Paul是Getting Started with Pyparsing一书的作者,还为Python Magazine撰写和编辑了多篇文章。他在PyCon、PyTexas和奥斯汀Python用户组上发表过演讲,并在StackOverflow上活跃。Paul现在与妻子和狗一起生活在得克萨斯州奥斯汀,在Indeed担任网站可靠性工程师,帮助人们找工作。
 
 
The animal on the cover of Python in a Nutshell, fourth edition, is an African rock python (Python sebae), one of the six largest snake species in the world. They are native to sub-Saharan Africa, but can also be found in other parts of the world. They can live in a wide range of habitats from temperate forests and grasslands to tropical savanna and forests. While they live mainly on the ground, they are also excellent swimmers and climbers and like to live near areas with a permanent water source. Additionally, they can be found near human settlements due to the presence of rats, mice, and other vermin.
The average size of this species of python is between ten and thirteen feet. They have large, stout bodies covered in colored blotches and irregular stripes, varying in color between brown, olive, chestnut, and yellow, fading to white on their underside. African rock pythons have triangular heads with a brown spearhead shape on top, outlined in yellow.
Pythons are nonvenomous constrictor snakes that kill their prey by suffocation. While the snake’s sharp teeth grip and hold the prey in place, the python’s long body coils around its victim’s chest, constricting tighter each time it exhales. African rock pythons feed on a wide range of mammals and birds, such as rodents, lizards, vultures, fowl, dogs, and goats. Python attacks on humans are extremely rare and only occur when provoked.
购买选项
定价:168.00元
书号:978-7-5766-0715-4
出版社:东南大学出版社