Python标准库总览

  |  

摘要: 《The Python 3 Standard Library by Example》中介绍的标准库组件

【对算法,数学,计算机感兴趣的同学,欢迎关注我哈,阅读更多原创文章】
我的网站:潮汐朝夕的生活实验室
我的公众号:算法题刷刷
我的知乎:潮汐朝夕
我的github:FennelDumplings
我的leetcode:FennelDumplings


书籍信息

《The Python 3 Standard Library by Example》这本书介绍的标准库组件,中文版资源如下:


Text

  • string
  • textwrap
  • re
  • difflib

Data Structures

Algorithms

  • functools
  • itertools
  • operator
  • contextlib

Dates and Times

  • time
  • datetime
  • calendar

Mathematics

  • decimal
  • fractions
  • random
  • math
  • statistics

The File System

  • os.path
  • pathlib
  • glob
  • fnmatch
  • linecache
  • tempfile
  • shutil
  • filecmp
  • mmap
  • codecs
  • io

Data Persistence and Exchange

  • pickle
  • shelve
  • dbm
  • sqlite3
  • xml.etrxx.ElementTree
  • csv

Data Compression and Archiving

  • zlib
  • gzip
  • bz2
  • tarfile
  • zipfile

Cryptography

  • hashlib
  • hmac

Concurrency with Processes, Threads, and Coroutines

  • subprocess
  • signal
  • threading
  • multiprocessing
  • asyncio
  • concurrent.futures

Networking

  • ipaddress
  • socket
  • selectors
  • select
  • socketserver

The Internet

  • urllib.parse
  • urllib.request
  • urllib.robotparser
  • base64
  • http.server
  • http.cookies
  • webbrowser
  • uuid
  • json
  • xmlrpc.client
  • xmlrpc.server

Email

  • smtplib
  • smtpd
  • mailbox
  • imaplib

Application Building Blocks

  • argparse
  • getopt
  • readline
  • getpass
  • cmd
  • shlex
  • configparser
  • logging
  • fileinput
  • atexit
  • sched

Internationalization and Localization

  • gettext
  • locale

Developer Tools

  • pydoc
  • doctest
  • unittest
  • trace
  • traceback
  • cgitb
  • pdb
  • profile
  • pstats
  • timeit
  • tabnanny
  • compileall
  • pyclbr
  • venv
  • ensurepip

Runtime Features

  • site
  • sys
  • os
  • platform
  • resource
  • gc
  • sysconfig

Language Tools

  • warnings
  • abc
  • dis
  • inspect

Modules and Packages

  • importlib
  • pkgutil
  • zipimport

Share