The Python Standard Library
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握 Python 基础语法、想系统熟悉标准库的中级程序员
- 经常写脚本处理文本、文件、数据格式转换的运维与数据工作者
- 希望少装第三方库、用内置模块解决常见任务的后端开发者
- 准备面试或想系统梳理 Python 常用模块知识点的学习者
Not a good fit for
- 完全没有编程基础的零起点读者,书中不讲解语言入门知识
- 主要使用 Python 3、只想找现成可复制代码的读者,宜选《Python 3标准库》
- 寻找框架级实践(如 Web 框架、机器学习)的项目型读者
Reading tips
- 第一遍按章通读目录与每节开头,先建立“哪个模块解决哪类问题”的地图,再挑常用章节精读。
- 随手开一个代码文件,把示例敲一遍并改动参数观察输出差异,比只读更能理解模块行为。
- 把本书当手册用:遇到文本解析、文件处理、并发或网络需求时,按功能定位对应章节再细读。
- 若使用 Python 3,请对照官方文档核对 API 变化,并可搭配《Python 3标准库》同步学习。
About the publisher
In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.
Contents
- Chapter 1 Text (string, textwrap, re, difflib)
- Chapter 2 Data Structures (collections, array, heapq, bisect, Queue, struct, weakref, copy, pprint)
- Chapter 3 Algorithms (functools, itertools, operator, contextlib)
- Chapter 4 Dates and Times (time, datetime, calendar)
- Chapter 5 Mathematical Operations (decimal, fractions, random, math, statistics)
- Chapter 6 The File System (os.path, glob, fnmatch, linecache, tempfile, shutil, filecmp, mmap, codecs, io)
- Chapter 7 Data Persistence and Exchange (pickle, shelve, dbm, sqlite3, xml.etree.ElementTree, csv)
- Chapter 8 Data Compression and Archiving (zlib, gzip, bz2, tarfile, zipfile)
- Chapter 9 Cryptography (hashlib, hmac)
- Chapter 10 Concurrency with Processes, Threads, and Coroutines (subprocess, signal, threading, multiprocessing, concurrent.futures)
- Chapter 11 Networking (ipaddress, socket, select, selectors, socketserver)
- Chapter 12 The Internet (urllib, base64, http.server, http.cookies, uuid, json, xmlrpc, and others)
- Chapter 13 Email (modules for parsing and sending email)
- Chapter 14 Application Building Blocks
- Chapter 15 Internationalization and Localization
- Chapter 16 Developer Tools
- Chapter 17 Runtime Features
- Chapter 18 Language Tools
- Chapter 19 Modules and Packages
- Appendix A Porting Notes
- Appendix B Beyond the Standard Library
FAQ
这本书讲的是 Python 2 还是 Python 3?
零基础能直接读这本书吗?
它和 Python 官方文档有什么区别?
书里的示例代码能直接用在项目里吗?
这本书有必要逐页读完吗?
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.