跳转到主要内容
本章内容326
-
01
`!abc` --- Abstract Base Classes
abc
Source code:
Lib/abc.py
This module provides the infrastructure for defining
abstract base classes <a...
1 天前
-
02
`!aifc` --- Read and write AIFF and AIFC files
aifc
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.13...
1 天前
-
03
Generic Operating System Services
The modules described in this chapter provide interfaces to operating system features that are available on...
1 天前
-
04
`!annotationlib` --- Functionality for introspecting annotations
annotationlib
3.14
Source code:
Lib/annotationlib.py
default
import annotationlib from annotationlib impor...
1 天前
-
05
Data Compression and Archiving
The modules described in this chapter support data compression with the zlib, gzip, bzip2, lzma, and zstd a...
1 天前
-
06
`!argparse` --- Parser for command-line options, arguments and subcommands
argparse
3.2
Source code:
Lib/argparse.py
[!NOTE]
While
!argparse is the default recommended standard lib...
1 天前
-
07
`!array` --- Efficient arrays of numeric values
array
single: arrays
This module defines an object type which can compactly represent an array of basic val...
1 天前
-
08
`!ast` --- Abstract syntax trees
ast
import ast
Source code:
Lib/ast.py
The
!ast module helps Python applications to process trees of the ...
1 天前
-
09
`!asynchat` --- Asynchronous socket command/response handler
asynchat
3.6 3.12
This module is no longer part of the Python standard library. It was
removed in Python 3...
1 天前
-
10
asyncio-api-index
asyncio
High-level API Index
This page lists all high-level async/await enabled asyncio APIs.
Tasks
Utiliti...
1 天前
-
11
asyncio-dev
asyncio
Developing with asyncio
Asynchronous programming is different from classic "sequential" programming...
1 天前
-
12
asyncio-eventloop
asyncio
Event loop
Source code:
Lib/asyncio/events.py,
Lib/asyncio/base_events.py
Preface
The event loop ...
1 天前
-
13
asyncio-exceptions
asyncio
Exceptions
Source code:
Lib/asyncio/exceptions.py
TimeoutError
A deprecated alias of
TimeoutError...
1 天前
-
14
asyncio-extending
asyncio
Extending
The main direction for
asyncio extending is writing custom event loop classes. Asyncio h...
1 天前
-
15
asyncio-future
asyncio
Futures
Source code:
Lib/asyncio/futures.py,
Lib/asyncio/base_futures.py
Future objects are used ...
1 天前
-
16
asyncio-graph
asyncio
Call graph introspection
Source code:
Lib/asyncio/graph.py
asyncio has powerful runtime call graph...
1 天前
-
17
asyncio-llapi-index
asyncio
Low-level API Index
This page lists all low-level asyncio APIs.
Obtaining the Event Loop
asyncio.ge...
1 天前
-
18
asyncio-platforms
asyncio
Platform Support
The
asyncio module is designed to be portable, but some platforms have subtle dif...
1 天前
-
19
asyncio-protocol
asyncio
Transports and Protocols
Preface
Transports and Protocols are used by the low-level event loop APIs...
1 天前
-
20
asyncio-queue
asyncio
Queues
Source code:
Lib/asyncio/queues.py
asyncio queues are designed to be similar to classes of ...
1 天前
-
21
asyncio-runner
asyncio
Runners
Source code:
Lib/asyncio/runners.py
This section outlines high-level asyncio primitives to...
1 天前
-
22
asyncio-stream
asyncio
Streams
Source code:
Lib/asyncio/streams.py
Streams are high-level async/await-ready primitives to...
1 天前
-
23
asyncio-subprocess
asyncio
Subprocesses
Source code:
Lib/asyncio/subprocess.py,
Lib/asyncio/base_subprocess.py
This section ...
1 天前
-
24
asyncio-sync
asyncio
Synchronization Primitives
Source code:
Lib/asyncio/locks.py
asyncio synchronization primitives ar...
1 天前
-
25
asyncio-task
asyncio
Coroutines and tasks
This section outlines high-level asyncio APIs to work with coroutines and Task...
1 天前
-
26
asyncio-threading
asyncio
asyncio and free-threaded Python
asyncio uses an event loop as a scheduler to enable highly efficie...
1 天前
-
27
asyncio-tools
asyncio
Command-line introspection tools
Source code:
Lib/asyncio/tools.py
The
!asyncio module can be inv...
1 天前
-
28
`!asyncio` --- Asynchronous I/O
asyncio
Hello World!
import asyncio
async def main():
print('Hello ...')
await asyncio.sleep(1)
...
1 天前
-
29
`!asyncore` --- Asynchronous socket handler
asyncore
3.6 3.12
This module is no longer part of the Python standard library. It was
removed in Python 3...
1 天前
-
30
`!atexit` --- Exit handlers
atexit
The
!atexit module defines functions to register and unregister
exit handlers: functions that are ...
1 天前
-
31
`!audioop` --- Manipulate raw audio data
audioop
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3...
1 天前
-
32
audit_events
single: audit events
Audit events table
This table contains all events raised by
sys.audit or
PySys_Audit...
1 天前
-
33
`!base64` --- Base16, Base32, Base64, Base85 Data Encodings
base64
Source code:
Lib/base64.py
pair: base64; encoding single: MIME; base64 encoding
This module provide...
1 天前
-
34
`!bdb` --- Debugger framework
bdb
Source code:
Lib/bdb.py
The
!bdb module handles basic debugger functions, like setting breakpoints or...
1 天前
-
35
Binary Data Services
The modules described in this chapter provide some basic services operations for manipulation of binary dat...
1 天前
-
36
`!binascii` --- Convert between binary and ASCII
binascii
pair: module; base64
The
!binascii module contains a number of methods to convert between binary ...
1 天前
-
37
`!bisect` --- Array bisection algorithm
bisect
Source code:
Lib/bisect.py
This module provides support for maintaining a list in sorted order with...
1 天前
-
38
`!builtins` --- Built-in objects
builtins
This module provides direct access to all 'built-in' identifiers of Python; for example,
builtins...
1 天前
-
39
`!bz2` --- Support for `bzip2` compression
bz2
Source code:
Lib/bz2.py
This module provides a comprehensive interface for compressing and decompressi...
1 天前
-
40
`!calendar` --- General calendar-related functions
calendar
Source code:
Lib/calendar.py
This module allows you to output calendars like the Unix
cal progra...
1 天前
-
41
`!cgi` --- Common Gateway Interface support
cgi
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.13 ...
1 天前
-
42
`!cgitb` --- Traceback manager for CGI scripts
cgitb
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.1...
1 天前
-
43
`!chunk` --- Read IFF chunked data
chunk
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.1...
1 天前
-
44
`!cmath` --- Mathematical functions for complex numbers
cmath
This module provides access to mathematical functions for complex numbers. The functions in this modu...
1 天前
-
45
`!cmd` --- Support for line-oriented command interpreters
cmd
Source code:
Lib/cmd.py
The
Cmd class provides a simple framework for writing line-oriented command i...
1 天前
-
46
Modules command-line interface (CLI)
The following modules have a command-line interface.
ast <ast-cli>
asyncio <asyncio-cli>
base64
calendar <c...
1 天前
-
47
Command-line interface libraries
The modules described in this chapter assist with implementing command line and terminal interfaces for app...
1 天前
-
48
`!code` --- Interpreter base classes
code
Source code:
Lib/code.py
The
code module provides facilities to implement read-eval-print loops in P...
1 天前
-
49
`!codecs` --- Codec registry and base classes
codecs
Source code:
Lib/codecs.py
single: Unicode single: Codecs pair: Codecs; encode pair: Codecs; decode...
1 天前
-
50
`!codeop` --- Compile Python code
codeop
Source code:
Lib/codeop.py
The
!codeop module provides utilities upon which the Python read-eval-p...
1 天前
-
51
`!collections.abc` --- Abstract Base Classes for Containers
collections.abc
3.3 Formerly, this module was part of the
collections module.
Source code:
Lib/_collectio...
1 天前
-
52
`!collections` --- Container datatypes
collections
Source code:
Lib/collections/__init__.py
from collections import * import itertools __name__ =...
1 天前
-
53
`!colorsys` --- Conversions between color systems
colorsys
Source code:
Lib/colorsys.py
The
!colorsys module defines bidirectional conversions of color val...
1 天前
-
54
`!compileall` --- Byte-compile Python libraries
compileall
Source code:
Lib/compileall.py
This module provides some utility functions to support installin...
1 天前
-
55
The `!compression` package
compression
3.14
The
!compression package contains the canonical compression modules containing interfaces...
1 天前
-
56
`!compression.zstd` --- Compression compatible with the Zstandard format
compression.zstd
3.14
Source code:
Lib/compression/zstd/__init__.py
This module provides classes and funct...
1 天前
-
57
Concurrent Execution
The modules described in this chapter provide support for concurrent execution of code. The appropriate cho...
1 天前
-
58
`!concurrent.futures` --- Launching parallel tasks
concurrent.futures
3.2
Source code:
Lib/concurrent/futures/thread.py,
Lib/concurrent/futures/process.py, ...
1 天前
-
59
`!concurrent.interpreters` --- Multiple interpreters in the same process
concurrent.interpreters
3.14
Source code:
Lib/concurrent/interpreters
The
!concurrent.interpreters module...
1 天前
-
60
The `!concurrent` package
This package contains the following modules:
concurrent.futures -- Launching parallel tasks
concurrent.inte...
1 天前
-
61
`!configparser` --- Configuration file parser
configparser
Source code:
Lib/configparser.py
pair: .ini; file pair: configuration; file single: ini file ...
1 天前
-
62
`!contextlib` --- Utilities for `!with`-statement contexts
contextlib
Source code:
Lib/contextlib.py
This module provides utilities for common tasks involving the
w...
1 天前
-
63
`!contextvars` --- Context Variables
contextvars
This module provides APIs to manage, store, and access context-local state. The
~contextvars.C...
1 天前
-
64
`!copy` --- Shallow and deep copy operations
copy
Source code:
Lib/copy.py
Assignment statements in Python do not copy objects, they create bindings be...
1 天前
-
65
`!copyreg` --- Register `!pickle` support functions
copyreg
Source code:
Lib/copyreg.py
pair: module; pickle pair: module; copy
The
!copyreg module offers a ...
1 天前
-
66
`!crypt` --- Function to check Unix passwords
crypt
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.1...
1 天前
-
67
Cryptographic Services
single: cryptography
The modules described in this chapter implement various algorithms of a cryptographic ...
1 天前
-
68
`!csv` --- CSV file reading and writing
csv
Source code:
Lib/csv.py
single: csv pair: data; tabular
The so-called CSV (Comma Separated Values) for...
1 天前
-
69
`!ctypes` --- A foreign function library for Python
ctypes
Source code:
Lib/ctypes
!ctypes is a foreign function library for Python. It provides C compatible ...
1 天前
-
70
`!curses.ascii` --- Utilities for ASCII characters
curses.ascii
Source code:
Lib/curses/ascii.py
The
!curses.ascii module supplies name constants for ASCII ...
1 天前
-
71
`!curses` --- Terminal handling for character-cell displays
curses
Source code:
Lib/curses
The
!curses module provides an interface to the curses library, the de-fac...
1 天前
-
72
`!curses.panel` --- A panel stack extension for curses
curses.panel
Panels are windows with the added feature of depth, so they can be stacked on top of each othe...
1 天前
-
73
Custom Python Interpreters
The modules described in this chapter allow writing interfaces similar to Python's interactive interpreter....
1 天前
-
74
`!dataclasses` --- Data Classes
dataclasses
Source code:
Lib/dataclasses.py
This module provides a decorator and functions for automatical...
1 天前
-
75
Data Types
The modules described in this chapter provide a variety of specialized data types such as dates and times, ...
1 天前
-
76
`!datetime` --- Basic date and time types
datetime
Source code:
Lib/datetime.py
The
!datetime module supplies classes for manipulating dates and ti...
1 天前
-
77
`!dbm` --- Interfaces to Unix "databases"
dbm
Source code:
Lib/dbm/__init__.py
!dbm is a generic interface to variants of the DBM database:
dbm.sqli...
1 天前
-
78
Debugging and profiling
These libraries help you with Python development: the debugger enables you to step through code, analyze st...
1 天前
-
79
`!decimal` --- Decimal fixed-point and floating-point arithmetic
decimal
Source code:
Lib/decimal.py
import decimal import math from decimal import * # make sure each grou...
1 天前
-
80
Development Tools
The modules described in this chapter help you write software. For example, the
pydoc module takes a modul...
1 天前
-
81
Python Development Mode
3.7
The Python Development Mode introduces additional runtime checks that are too expensive to be enabled b...
1 天前
-
82
`!difflib` --- Helpers for computing deltas
difflib
Source code:
Lib/difflib.py
import sys from difflib import *
This module provides classes and func...
1 天前
-
83
`!dis` --- Disassembler for Python bytecode
dis
Source code:
Lib/dis.py
import dis def myfunc(alist): return len(alist)
The
!dis module supports the ...
1 天前
-
84
Software Packaging and Distribution
These libraries help you with publishing and installing Python software. While these modules are designed t...
1 天前
-
85
`!distutils` --- Building and installing Python modules
distutils
3.10 3.12
This module is no longer part of the Python standard library. It was
removed in Python...
1 天前
-
86
`!doctest` --- Test interactive Python examples
doctest
Source code:
Lib/doctest.py
The
!doctest module searches for pieces of text that look like intera...
1 天前
-
87
`!email.charset`: Representing character sets
email.charset
Source code:
Lib/email/charset.py
This module is part of the legacy (
Compat32) email API. I...
1 天前
-
88
`email.message.Message`: Representing an email message using the `~email.policy.compat32` API
email.message
The
Message class is very similar to the
~email.message.EmailMessage class, without the met...
1 天前
-
89
`!email.contentmanager`: Managing MIME Content
email.contentmanager
Source code:
Lib/email/contentmanager.py
3.6[^1]
Base class for content managers. Pro...
1 天前
-
90
`!email.encoders`: Encoders
email.encoders
Source code:
Lib/email/encoders.py
This module is part of the legacy (
Compat32) email API....
1 天前
-
91
`!email.errors`: Exception and Defect classes
email.errors
Source code:
Lib/email/errors.py
The following exception classes are defined in the
!email.e...
1 天前
-
92
`email`: Examples
Here are a few examples of how to use the
email package to read, write, and send simple email messages, as...
1 天前
-
93
`!email.generator`: Generating MIME documents
email.generator
Source code:
Lib/email/generator.py
One of the most common tasks is to generate the flat (...
1 天前
-
94
`!email.header`: Internationalized headers
email.header
Source code:
Lib/email/header.py
This module is part of the legacy (
Compat32) email API. In ...
1 天前
-
95
`!email.headerregistry`: Custom Header Objects
email.headerregistry
Source code:
Lib/email/headerregistry.py
3.6[^1]
Headers are represented by customize...
1 天前
-
96
`!email.iterators`: Iterators
email.iterators
Source code:
Lib/email/iterators.py
Iterating over a message object tree is fairly easy wi...
1 天前
-
97
`!email` --- An email and MIME handling package
email
Source code:
Lib/email/__init__.py
The
!email package is a library for managing email messages. It ...
1 天前
-
98
`!email.message`: Representing an email message
email.message
Source code:
Lib/email/message.py
3.6[^1]
The central class in the
email package is the
Em...
1 天前
-
99
`!email.mime`: Creating email and MIME objects from scratch
email.mime
Source code:
Lib/email/mime/
This module is part of the legacy (
Compat32) email API. Its funct...
1 天前
-
100
`!email.parser`: Parsing email messages
email.parser
Source code:
Lib/email/parser.py
Message object structures can be created in one of two ways:...
1 天前
-
101
`!email.policy`: Policy Objects
email.policy
3.3
Source code:
Lib/email/policy.py
The
email package's prime focus is the handling of emai...
1 天前
-
102
`!email.utils`: Miscellaneous utilities
email.utils
Source code:
Lib/email/utils.py
There are a couple of useful utilities provided in the
!email...
1 天前
-
103
`!ensurepip` --- Bootstrapping the `pip` installer
ensurepip
3.4
Source code:
Lib/ensurepip
The
!ensurepip package provides support for bootstrapping the
p...
1 天前
-
104
`!enum` --- Support for enumerations
enum
3.4
Source code:
Lib/enum.py
Important
This page contains the API reference information. For tutorial...
1 天前
-
105
`!errno` --- Standard errno system symbols
errno
This module makes available standard
errno system symbols. The value of each symbol is the correspon...
1 天前
-
106
`!faulthandler` --- Dump the Python traceback
faulthandler
3.3
This module contains functions to dump Python tracebacks explicitly, on a fault, after a t...
1 天前
-
107
`!fcntl` --- The `fcntl` and `ioctl` system calls
fcntl
pair: UNIX; file control pair: UNIX; I/O control
This module performs file and I/O control on file de...
1 天前
-
108
`!filecmp` --- File and Directory Comparisons
filecmp
Source code:
Lib/filecmp.py
The
!filecmp module defines functions to compare files and directorie...
1 天前
-
109
File Formats
The modules described in this chapter parse various miscellaneous file formats that aren't markup languages...
1 天前
-
110
`!fileinput` --- Iterate over lines from multiple input streams
fileinput
Source code:
Lib/fileinput.py
This module implements a helper class and functions to quickly wri...
1 天前
-
111
File and Directory Access
The modules described in this chapter deal with disk files and directories. For example, there are modules ...
1 天前
-
112
`!fnmatch` --- Unix filename pattern matching
fnmatch
Source code:
Lib/fnmatch.py
single: filenames; wildcard expansion
pair: module; re
This module pro...
1 天前
-
113
`!fractions` --- Rational numbers
fractions
Source code:
Lib/fractions.py
The
!fractions module provides support for rational number arithm...
1 天前
-
114
frameworks
orphan
Program frameworks
This chapter is no longer maintained, and the modules it contained have been move...
1 天前
-
115
`!ftplib` --- FTP protocol client
ftplib
Source code:
Lib/ftplib.py
pair: FTP; protocol single: FTP; ftplib (standard module)
This module de...
1 天前
-
116
Functional Programming Modules
The modules described in this chapter provide functions and classes that support a functional programming s...
1 天前
-
117
`!functools` --- Higher-order functions and operations on callable objects
functools
Source code:
Lib/functools.py
default
import functools from functools import *
The
!functools m...
1 天前
-
118
`!gc` --- Garbage Collector interface
gc
This module provides an interface to the optional garbage collector. It provides the ability to disable ...
1 天前
-
119
`!getopt` --- C-style parser for command line options
getopt
Source code:
Lib/getopt.py
[!NOTE]
This module is considered feature complete. A more declarative a...
1 天前
-
120
`!getpass` --- Portable password input
getpass
Source code:
Lib/getpass.py
not WASI.
This module does not work or is not available on WebAssembly...
1 天前
-
121
`!gettext` --- Multilingual internationalization services
gettext
Source code:
Lib/gettext.py
The
!gettext module provides internationalization (I18N) and localiza...
1 天前
-
122
`!glob` --- Unix style pathname pattern expansion
glob
Source code:
Lib/glob.py
single: filenames; pathname expansion
single: * (asterisk); in glob-style wi...
1 天前
-
123
`!graphlib` --- Functionality to operate with graph-like structures
graphlib
Source code:
Lib/graphlib.py
default
import graphlib from graphlib import *
Provides functionalit...
1 天前
-
124
`!grp` --- The group database
grp
This module provides access to the Unix group database. It is available on all Unix versions.
Unix, not...
1 天前
-
125
`!gzip` --- Support for `gzip` files
gzip
Source code:
Lib/gzip.py
This module provides a simple interface to compress and decompress files jus...
1 天前
-
126
`!hashlib` --- Secure hashes and message digests
hashlib
Source code:
Lib/hashlib.py
single: message digest, MD5 single: secure hash algorithm, SHA1, SHA2,...
1 天前
-
127
`!heapq` --- Heap queue algorithm
heapq
Source code:
Lib/heapq.py
This module provides an implementation of the heap queue algorithm, also k...
1 天前
-
128
`!hmac` --- Keyed-Hashing for Message Authentication
hmac
Source code:
Lib/hmac.py
This module implements the HMAC algorithm as described by
2104. The interfa...
1 天前
-
129
`!html.entities` --- Definitions of HTML general entities
html.entities
Source code:
Lib/html/entities.py
This module defines four dictionaries,
html5,
name2codep...
1 天前
-
130
`!html` --- HyperText Markup Language support
html
Source code:
Lib/html/__init__.py
This module defines utilities to manipulate HTML.
escape(s, quote=T...
1 天前
-
131
`!html.parser` --- Simple HTML and XHTML parser
html.parser
Source code:
Lib/html/parser.py
single: HTML single: XHTML
This module defines a class
HTMLPa...
1 天前
-
132
`!http.client` --- HTTP protocol client
http.client
Source code:
Lib/http/client.py
pair: HTTP; protocol single: HTTP; http.client (standard modul...
1 天前
-
133
`!http.cookiejar` --- Cookie handling for HTTP clients
http.cookiejar
Source code:
Lib/http/cookiejar.py
The
!http.cookiejar module defines classes for automati...
1 天前
-
134
`!http.cookies` --- HTTP state management
http.cookies
Source code:
Lib/http/cookies.py
The
!http.cookies module defines classes for abstracting th...
1 天前
-
135
`!http` --- HTTP modules
http
Source code:
Lib/http/__init__.py
pair: HTTP; protocol single: HTTP; http (standard module)
!http is ...
1 天前
-
136
`!http.server` --- HTTP servers
http.server
Source code:
Lib/http/server.py
pair: WWW; server pair: HTTP; protocol single: URL single: htt...
1 天前
-
137
Internationalization
The modules described in this chapter help you write software that is independent of language and locale by...
1 天前
-
138
IDLE --- Python editor and shell
Source code:
Lib/idlelib/
single: IDLE single: Python Editor single: Integrated Development Environment
ID...
1 天前
-
139
`!imaplib` --- IMAP4 protocol client
imaplib
Source code:
Lib/imaplib.py
pair: IMAP4; protocol pair: IMAP4_SSL; protocol pair: IMAP4_stream; pr...
1 天前
-
140
`!imghdr` --- Determine the type of an image
imghdr
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3....
1 天前
-
141
`!imp` --- Access the import internals
imp
3.4 3.12
This module is no longer part of the Python standard library. It was
removed in Python 3.12 <...
1 天前
-
142
`!importlib` --- The implementation of `!import`
importlib
3.1
Source code:
Lib/importlib/__init__.py
Introduction
The purpose of the
!importlib package i...
1 天前
-
143
`!importlib.metadata` -- Accessing package metadata
importlib.metadata
3.8
3.10
importlib.metadata is no longer provisional.
Source code:
Lib/importlib/metad...
1 天前
-
144
`!importlib.resources.abc` -- Abstract base classes for resources
importlib.resources.abc
Source code:
Lib/importlib/resources/abc.py
3.11
Superseded by TraversableResource...
1 天前
-
145
`!importlib.resources` -- Package resource reading, opening and access
importlib.resources
Source code:
Lib/importlib/resources/__init__.py
3.7
This module leverages Python's im...
1 天前
-
146
The Python standard library
This library reference manual describes the standard library distributed with Python. It also describes som...
1 天前
-
147
`!inspect` --- Inspect live objects
import inspect from inspect import *
inspect
Source code:
Lib/inspect.py
The
!inspect module provides sev...
1 天前
-
148
Internet Protocols and Support
single: WWW single: Internet single: World Wide Web
pair: module; socket
The modules described in this chap...
1 天前
-
149
Introduction
The Python standard library consists of a collection of modules. There are many ways to dissect this collec...
1 天前
-
150
`!io` --- Core tools for working with streams
io
Source code:
Lib/io.py
Overview
single: file object; io module
The
!io module provides Python's main f...
1 天前
-
151
`!ipaddress` --- IPv4/IPv6 manipulation library
ipaddress
Source code:
Lib/ipaddress.py
!ipaddress provides the capabilities to create, manipulate and ope...
1 天前
-
152
Networking and Interprocess Communication
The modules described in this chapter provide mechanisms for networking and inter-processes communication.
...
1 天前
-
153
`!itertools` --- Functions creating iterators for efficient looping
itertools
from itertools import * import collections import math import operator import random
This module ...
1 天前
-
154
`!json` --- JSON encoder and decoder
json
Source code:
Lib/json/__init__.py
JSON (JavaScript Object Notation), specified by
7159 (which obsole...
1 天前
-
155
`!keyword` --- Testing for Python keywords
keyword
Source code:
Lib/keyword.py
This module allows a Python program to determine if a string is a
key...
1 天前
-
156
Python Language Services
Python provides a number of modules to assist in working with the Python language. These modules support to...
1 天前
-
157
`!linecache` --- Random access to text lines
linecache
Source code:
Lib/linecache.py
The
!linecache module allows one to get any line from a Python so...
1 天前
-
158
`!locale` --- Internationalization services
locale
Source code:
Lib/locale.py
The
!locale module opens access to the POSIX locale database and functi...
1 天前
-
159
`!logging.config` --- Logging configuration
logging.config
Source code:
Lib/logging/config.py
Important
This page contains only reference information....
1 天前
-
160
`!logging.handlers` --- Logging handlers
logging.handlers
Source code:
Lib/logging/handlers.py
Important
This page contains only reference informat...
1 天前
-
161
`!logging` --- Logging facility for Python
logging
Source code:
Lib/logging/__init__.py
pair: Errors; logging
Important
This page contains the API re...
1 天前
-
162
`!lzma` --- Compression using the LZMA algorithm
lzma
3.3
Source code:
Lib/lzma.py
This module provides classes and convenience functions for compressing a...
1 天前
-
163
`!mailbox` --- Manipulate mailboxes in various formats
mailbox
Source code:
Lib/mailbox.py
This module defines two classes,
Mailbox and
Message, for accessing ...
1 天前
-
164
`!mailcap` --- Mailcap file handling
mailcap
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3...
1 天前
-
165
Structured Markup Processing Tools
Python supports a variety of modules to work with various forms of structured data markup. This includes mo...
1 天前
-
166
`!marshal` --- Internal Python object serialization
marshal
This module contains functions that can read and write Python values in a binary format. The format...
1 天前
-
167
`!math.integer` --- integer-specific mathematics functions
math.integer
3.15
This module provides access to the mathematical functions defined for integer arguments. ...
1 天前
-
168
`!math` --- Mathematical functions
math
from math import fsum
This module provides access to common mathematical functions and constants, incl...
1 天前
-
169
`!mimetypes` --- Map filenames to MIME types
mimetypes
Source code:
Lib/mimetypes.py
pair: MIME; content type
The
!mimetypes module converts between a...
1 天前
-
170
Multimedia Services
The modules described in this chapter implement various algorithms or interfaces that are mainly useful for...
1 天前
-
171
`!mmap` --- Memory-mapped file support
mmap
not WASI.
This module does not work or is not available on WebAssembly. See
wasm-availability for mor...
1 天前
-
172
`!modulefinder` --- Find modules used by a script
modulefinder
Source code:
Lib/modulefinder.py
This module provides a
ModuleFinder class that can be used ...
1 天前
-
173
Importing Modules
The modules described in this chapter provide new ways to import other Python modules and hooks for customi...
1 天前
-
174
`!msilib` --- Read and write Microsoft Installer files
msilib
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3....
1 天前
-
175
`!msvcrt` --- Useful routines from the MS VC++ runtime
msvcrt
Source code:
PC/msvcrtmodule.c
These functions provide access to some useful capabilities on Window...
1 天前
-
176
`!multiprocessing` --- Process-based parallelism
multiprocessing
Source code:
Lib/multiprocessing/
not Android, not iOS, not WASI.
This module is not suppo...
1 天前
-
177
`!multiprocessing.shared_memory` --- Shared memory for direct access across processes
multiprocessing.shared_memory
Source code:
Lib/multiprocessing/shared_memory.py
3.8
single: Shared Memory ...
1 天前
-
178
Internet Data Handling
This chapter describes modules which support handling data formats commonly used on the internet.
email.rst...
1 天前
-
179
`!netrc` --- netrc file processing
netrc
Source code:
Lib/netrc.py
The
~netrc.netrc class parses and encapsulates the netrc file format used...
1 天前
-
180
`!nis` --- Interface to Sun’s NIS (Yellow Pages)
nis
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.13 ...
1 天前
-
181
`!nntplib` --- NNTP protocol client
nntplib
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3...
1 天前
-
182
`!numbers` --- Numeric abstract base classes
numbers
Source code:
Lib/numbers.py
The
!numbers module (
3141) defines a hierarchy of numeric
abstract ...
1 天前
-
183
Numeric and Mathematical Modules
The modules described in this chapter provide numeric and math-related functions and data types. The
numbe...
1 天前
-
184
`!operator` --- Standard operators as functions
operator
Source code:
Lib/operator.py
import operator from operator import itemgetter, iadd
The
!operator...
1 天前
-
185
`!optparse` --- Parser for command line options
optparse
Source code:
Lib/optparse.py
Choosing an argument parsing library
The standard library includes t...
1 天前
-
186
`!os` --- Miscellaneous operating system interfaces
os
Source code:
Lib/os.py
This module provides a portable way of using operating system dependent function...
1 天前
-
187
`!os.path` --- Common pathname manipulations
os.path
Source code:
Lib/genericpath.py,
Lib/posixpath.py (for POSIX) and
Lib/ntpath.py (for Windows).
s...
1 天前
-
188
`!ossaudiodev` --- Access to OSS-compatible audio devices
ossaudiodev
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Pyth...
1 天前
-
189
`!pathlib` --- Object-oriented filesystem paths
pathlib
3.4
Source code:
Lib/pathlib/
single: path; operations
This module offers classes representing fil...
1 天前
-
190
`!pdb` --- The Python Debugger
pdb
Source code:
Lib/pdb.py
single: debugging
The module
!pdb defines an interactive source code debugger...
1 天前
-
191
Data Persistence
The modules described in this chapter support storing Python data in a persistent form on disk. The
pickle...
1 天前
-
192
`!pickle` --- Python object serialization
pickle
Source code:
Lib/pickle.py
single: persistence pair: persistent; objects pair: serializing; objects...
1 天前
-
193
`!pickletools` --- Tools for pickle developers
pickletools
Source code:
Lib/pickletools.py
This module contains various constants relating to the intimat...
1 天前
-
194
`!pipes` --- Interface to shell pipelines
pipes
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.1...
1 天前
-
195
`!pkgutil` --- Package extension utility
pkgutil
Source code:
Lib/pkgutil.py
This module provides utilities for the import system, in particular pa...
1 天前
-
196
`!platform` --- Access to underlying platform's identifying data
platform
Source code:
Lib/platform.py
[!NOTE]
Specific platforms listed alphabetically, with Linux include...
1 天前
-
197
`!plistlib` --- Generate and parse Apple `.plist` files
plistlib
Source code:
Lib/plistlib.py
pair: plist; file single: property list
This module provides an inte...
1 天前
-
198
`!poplib` --- POP3 protocol client
poplib
Source code:
Lib/poplib.py
pair: POP3; protocol
This module defines a class,
POP3, which encapsula...
1 天前
-
199
`!posix` --- The most common POSIX system calls
posix
This module provides access to operating system functionality that is standardized by the C Standard ...
1 天前
-
200
`!pprint` --- Data pretty printer
pprint
Source code:
Lib/pprint.py
The
!pprint module provides a capability to "pretty-print" arbitrary Py...
1 天前
-
201
`!profile` --- Pure Python profiler
profile
Source code:
Lib/profile.py
3.15 3.17
The
!profile module is deprecated and will be removed in Py...
1 天前
-
202
`!profiling` --- Python profilers
profiling
3.15
Source code:
Lib/profiling/
single: statistical profiling single: profiling, statistical si...
1 天前
-
203
`!profiling.sampling` --- Statistical profiler
profiling.sampling
3.15
Source code:
Lib/profiling/sampling/
profiling.sampling
The
!profiling.sampling m...
1 天前
-
204
`!profiling.tracing` --- Deterministic profiler
profiling.tracing
cProfile
3.15
Source code:
Lib/profiling/tracing/
The
!profiling.tracing module provide...
1 天前
-
205
`!pstats` --- Statistics for profilers
pstats
Source code:
Lib/pstats.py
The
!pstats module provides tools for reading, manipulating, and displa...
1 天前
-
206
`!pty` --- Pseudo-terminal utilities
pty
Source code:
Lib/pty.py
The
!pty module defines operations for handling the pseudo-terminal concept: ...
1 天前
-
207
`!pwd` --- The password database
pwd
This module provides access to the Unix user account and password database. It is available on all Unix...
1 天前
-
208
`!py_compile` --- Compile Python source files
py_compile
Source code:
Lib/py_compile.py
pair: file; byte-code
The
!py_compile module provides a functio...
1 天前
-
209
`!pyclbr` --- Python module browser support
pyclbr
Source code:
Lib/pyclbr.py
The
!pyclbr module provides limited information about the functions, cl...
1 天前
-
210
`!pydoc` --- Documentation generator and online help system
pydoc
Source code:
Lib/pydoc.py
single: documentation; generation single: documentation; online single: he...
1 天前
-
211
`!xml.parsers.expat` --- Fast XML parsing using Expat
xml.parsers.expat
Many of the attributes of the XMLParser objects are callbacks. Since signature informatio...
1 天前
-
212
Python Runtime Services
The modules described in this chapter provide a wide range of services related to the Python interpreter an...
1 天前
-
213
`!queue` --- A synchronized queue class
queue
Source code:
Lib/queue.py
The
!queue module implements multi-producer, multi-consumer queues. It is...
1 天前
-
214
`!quopri` --- Encode and decode MIME quoted-printable data
quopri
Source code:
Lib/quopri.py
pair: quoted-printable; encoding single: MIME; quoted-printable encoding...
1 天前
-
215
`!random` --- Generate pseudo-random numbers
random
Source code:
Lib/random.py
This module implements pseudo-random number generators for various distr...
1 天前
-
216
re
tocdepth
3
!re --- Regular expression operations
re
Source code:
Lib/re/
This module provides regular expr...
1 天前
-
217
`!readline` --- GNU readline interface
readline
The
!readline module defines a number of functions to facilitate completion and reading/writing o...
1 天前
-
218
removed
tocdepth
1
Removed Modules
The modules described in this chapter have been removed from the Python standard...
1 天前
-
219
`!reprlib` --- Alternate `repr` implementation
reprlib
Source code:
Lib/reprlib.py
The
!reprlib module provides a means for producing object representat...
1 天前
-
220
`!resource` --- Resource usage information
resource
This module provides basic mechanisms for measuring and controlling system resources utilized by a...
1 天前
-
221
`!rlcompleter` --- Completion function for GNU readline
rlcompleter
Source code:
Lib/rlcompleter.py
The
!rlcompleter module defines a completion function suitabl...
1 天前
-
222
`!runpy` --- Locating and executing Python modules
runpy
Source code:
Lib/runpy.py
The
!runpy module is used to locate and run Python modules without import...
1 天前
-
223
`!sched` --- Event scheduler
sched
Source code:
Lib/sched.py
single: event scheduling
The
!sched module defines a class which implemen...
1 天前
-
224
`!secrets` --- Generate secure random numbers for managing secrets
secrets
3.6
from secrets import * __name__ = '<doctest>'
Source code:
Lib/secrets.py
The
!secrets module ...
1 天前
-
225
security_warnings
single: security considerations
Security Considerations
The following modules have specific security consid...
1 天前
-
226
`!select` --- Waiting for I/O completion
select
This module provides access to the
!select and
!poll functions available in most operating systems...
1 天前
-
227
`!selectors` --- High-level I/O multiplexing
selectors
3.4
Source code:
Lib/selectors.py
Introduction
This module allows high-level and efficient I/O m...
1 天前
-
228
`!shelve` --- Python object persistence
shelve
Source code:
Lib/shelve.py
pair: module; pickle
A "shelf" is a persistent, dictionary-like object. ...
1 天前
-
229
`!shlex` --- Simple lexical analysis
shlex
Source code:
Lib/shlex.py
The
~shlex.shlex class makes it easy to write lexical analyzers for simpl...
1 天前
-
230
`!shutil` --- High-level file operations
shutil
Source code:
Lib/shutil.py
single: file; copying single: copying files
The
!shutil module offers a...
1 天前
-
231
`!signal` --- Set handlers for asynchronous events
signal
Source code:
Lib/signal.py
This module provides mechanisms to use signal handlers in Python.
Genera...
1 天前
-
232
`!site` --- Site-specific configuration hook
site
Source code:
Lib/site.py
This module is automatically imported during initialization. The automatic i...
1 天前
-
233
`!smtpd` --- SMTP Server
smtpd
3.6 3.12
This module is no longer part of the Python standard library. It was
removed in Python 3.12...
1 天前
-
234
`!smtplib` --- SMTP protocol client
smtplib
Source code:
Lib/smtplib.py
pair: SMTP; protocol single: Simple Mail Transfer Protocol
The
!smtpl...
1 天前
-
235
`!sndhdr` --- Determine type of sound file
sndhdr
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3....
1 天前
-
236
`!socket` --- Low-level networking interface
socket
Source code:
Lib/socket.py
This module provides access to the BSD socket interface. It is available...
1 天前
-
237
`!socketserver` --- A framework for network servers
socketserver
Source code:
Lib/socketserver.py
The
!socketserver module simplifies the task of writing net...
1 天前
-
238
`!spwd` --- The shadow password database
spwd
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.13...
1 天前
-
239
`!sqlite3` --- DB-API 2.0 interface for SQLite databases
sqlite3
Source code:
Lib/sqlite3/
import sqlite3 src = sqlite3.connect(":memory:", isolation_level=None) d...
1 天前
-
240
`!ssl` --- TLS/SSL wrapper for socket objects
ssl
Source code:
Lib/ssl.py
single: OpenSSL; (use in module ssl)
TLS, SSL, Transport Layer Security, Secur...
1 天前
-
241
`!stat` --- Interpreting `~os.stat` results
stat
Source code:
Lib/stat.py
The
!stat module defines constants and functions for interpreting the resul...
1 天前
-
242
`!statistics` --- Mathematical statistics functions
statistics
3.4
Source code:
Lib/statistics.py
from statistics import * import math __name__ = '<doctest>'
...
1 天前
-
243
`!string` --- Common string operations
string
Source code:
Lib/string/__init__.py
textseq
string-methods
String constants
The constants defined i...
1 天前
-
244
`!string.templatelib` --- Support for template string literals
string.templatelib
Source code:
Lib/string/templatelib.py
Format strings <f-strings>
Template string liter...
1 天前
-
245
`!stringprep` --- Internet String Preparation
stringprep
Source code:
Lib/stringprep.py
When identifying things (such as host names) in the internet, it...
1 天前
-
246
`!struct` --- Interpret bytes as packed binary data
from struct import *
struct
Source code:
Lib/struct.py
pair: C; structures triple: packing; binary; data
T...
1 天前
-
247
`!subprocess` --- Subprocess management
subprocess
Source code:
Lib/subprocess.py
The
!subprocess module allows you to spawn new processes, conne...
1 天前
-
248
`!sunau` --- Read and write Sun AU files
sunau
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.1...
1 天前
-
249
Superseded modules
The modules described in this chapter have been superseded by other modules for most use cases, and are ret...
1 天前
-
250
`!symtable` --- Access to the compiler's symbol tables
symtable
Source code:
Lib/symtable.py
Symbol tables are generated by the compiler from AST just before byt...
1 天前
-
251
`!sys` --- System-specific parameters and functions
sys
This module provides access to some variables used or maintained by the interpreter and to functions th...
1 天前
-
252
`!sys.monitoring` --- Execution event monitoring
sys.monitoring
3.12
[!NOTE]
!sys.monitoring is a namespace within the
sys module, not an independent modul...
1 天前
-
253
The initialization of the `sys.path` module search path
A module search path is initialized when Python starts. This module search path may be accessed at
sys.pat...
1 天前
-
254
`!sysconfig` --- Provide access to Python's configuration information
sysconfig
3.2
Source code:
Lib/sysconfig
single: configuration information
The
!sysconfig module provides...
1 天前
-
255
`!syslog` --- Unix syslog library routines
syslog
This module provides an interface to the Unix
syslog library routines. Refer to the Unix manual pag...
1 天前
-
256
`!tabnanny` --- Detection of ambiguous indentation
tabnanny
Source code:
Lib/tabnanny.py
For the time being this module is intended to be called as a script....
1 天前
-
257
`!tarfile` --- Read and write tar archive files
tarfile
Source code:
Lib/tarfile.py
The
!tarfile module makes it possible to read and write tar archives,...
1 天前
-
258
`!telnetlib` --- Telnet client
telnetlib
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python...
1 天前
-
259
`!tempfile` --- Generate temporary files and directories
tempfile
Source code:
Lib/tempfile.py
pair: temporary; file name pair: temporary; file
This module creates...
1 天前
-
260
`!termios` --- POSIX style tty control
termios
pair: POSIX; I/O control pair: tty; I/O control
This module provides an interface to the POSIX call...
1 天前
-
261
`!test` --- Regression tests package for Python
test
[!NOTE]
The
!test package is meant for internal use by Python only. It is documented for the benefit ...
1 天前
-
262
Text Processing Services<span id="stringservices"></span>
The modules described in this chapter provide a wide range of string manipulation operations and other text...
1 天前
-
263
`!textwrap` --- Text wrapping and filling
textwrap
Source code:
Lib/textwrap.py
The
!textwrap module provides some convenience functions, as well a...
1 天前
-
264
`!threading` --- Thread-based parallelism
threading
Source code:
Lib/threading.py
This module constructs higher-level threading interfaces on top of...
1 天前
-
265
`!time` --- Time access and conversions
time
This module provides various time-related functions. For related functionality, see also the
datetime...
1 天前
-
266
`!timeit` --- Measure execution time of small code snippets
timeit
Source code:
Lib/timeit.py
single: Benchmarking single: Performance
This module provides a simple w...
1 天前
-
267
Graphical user interfaces with Tk
single: GUI single: Graphical User Interface single: Tkinter single: Tk
Tk/Tcl has long been an integral pa...
1 天前
-
268
`!tkinter.colorchooser` --- Color choosing dialog
tkinter.colorchooser
Source code:
Lib/tkinter/colorchooser.py
The
!tkinter.colorchooser module provides t...
1 天前
-
269
Tkinter dialogs
!tkinter.simpledialog --- Standard Tkinter input dialogs
tkinter.simpledialog
Source code:
Lib/tkinter/sim...
1 天前
-
270
`!tkinter.dnd` --- Drag and drop support
tkinter.dnd
Source code:
Lib/tkinter/dnd.py
[!NOTE]
This is experimental and due to be deprecated when it ...
1 天前
-
271
`!tkinter.font` --- Tkinter font wrapper
tkinter.font
Source code:
Lib/tkinter/font.py
The
!tkinter.font module provides the
Font class for creat...
1 天前
-
272
`!tkinter.fontchooser` --- Font selection dialog
tkinter.fontchooser
3.16
Source code:
Lib/tkinter/fontchooser.py
The
!tkinter.fontchooser module provides...
1 天前
-
273
`!tkinter` --- Python interface to Tcl/Tk
tkinter
Source code:
Lib/tkinter/__init__.py
The
!tkinter package ("Tk interface") is the standard Python...
1 天前
-
274
`!tkinter.messagebox` --- Tkinter message prompts
tkinter.messagebox
Source code:
Lib/tkinter/messagebox.py
The
!tkinter.messagebox module provides a templ...
1 天前
-
275
`!tkinter.scrolledtext` --- Scrolled text widget
tkinter.scrolledtext
Source code:
Lib/tkinter/scrolledtext.py
The
!tkinter.scrolledtext module provides a...
1 天前
-
276
`!tkinter.systray` --- System tray icon and notifications
tkinter.systray
Source code:
Lib/tkinter/systray.py
3.16
The
!tkinter.systray module provides the
SysTra...
1 天前
-
277
`!tkinter.ttk` --- Tk themed widgets
tkinter.ttk
Source code:
Lib/tkinter/ttk.py
single: ttk
The
!tkinter.ttk module provides access to the Tk...
1 天前
-
278
`!token` --- Constants used with Python parse trees
token
Source code:
Lib/token.py
This module provides constants which represent the numeric values of leaf ...
1 天前
-
279
`!tokenize` --- Tokenizer for Python source
tokenize
Source code:
Lib/tokenize.py
The
!tokenize module provides a lexical scanner for Python source c...
1 天前
-
280
`!tomllib` --- Parse TOML files
tomllib
Source code:
Lib/tomllib
This module provides an interface for parsing TOML 1.1.0 (Tom's Obvious M...
1 天前
-
281
`!trace` --- Trace or track Python statement execution
trace
Source code:
Lib/trace.py
The
!trace module allows you to trace program execution, generate annotat...
1 天前
-
282
`!traceback` --- Print or retrieve a stack traceback
traceback
Source code:
Lib/traceback.py
This module provides a standard interface to extract, format and p...
1 天前
-
283
`!tracemalloc` --- Trace memory allocations
tracemalloc
3.4
Source code:
Lib/tracemalloc.py
The tracemalloc module is a debug tool to trace memory blo...
1 天前
-
284
`!tty` --- Terminal control functions
tty
Source code:
Lib/tty.py
The
!tty module defines functions for putting the tty into cbreak and raw mod...
1 天前
-
285
`!turtle` --- Turtle graphics
turtle
Source code:
Lib/turtle.py
default
from turtle import * turtle = Turtle()
import os os.remove("my_d...
1 天前
-
286
`!types` --- Dynamic type creation and names for built-in types
types
Source code:
Lib/types.py
This module defines utility functions to assist in dynamic creation of new...
1 天前
-
287
`!typing` --- Support for type hints
import typing from dataclasses import dataclass from typing import *
typing
3.5
Source code:
Lib/typing.py...
1 天前
-
288
`!unicodedata` --- Unicode Database
unicodedata
single: Unicode single: character pair: Unicode; database
This module provides access to the Un...
1 天前
-
289
`!unittest` --- Unit testing framework
unittest
Source code:
Lib/unittest/__init__.py
(If you are already familiar with the basic concepts of tes...
1 天前
-
290
`!unittest.mock` --- getting started
unittest.mock
3.3
import asyncio import unittest from unittest.mock import Mock, MagicMock, AsyncMock, patc...
1 天前
-
291
`!unittest.mock` --- mock object library
unittest.mock
unittest.mock
3.3
Source code:
Lib/unittest/mock.py
!unittest.mock is a library for testing ...
1 天前
-
292
Unix-specific services
The modules described in this chapter provide interfaces to features that are unique to the Unix operating ...
1 天前
-
293
`!urllib.error` --- Exception classes raised by urllib.request
urllib.error
Source code:
Lib/urllib/error.py
The
!urllib.error module defines the exception classes for ...
1 天前
-
294
`!urllib` --- URL handling modules
urllib
Source code:
Lib/urllib/
urllib is a package that collects several modules for working with URLs:
u...
1 天前
-
295
`!urllib.parse` --- Parse URLs into components
urllib.parse
Source code:
Lib/urllib/parse.py
single: WWW single: World Wide Web single: URL pair: URL; pa...
1 天前
-
296
`!urllib.request` --- Extensible library for opening URLs
urllib.request
Source code:
Lib/urllib/request.py
The
!urllib.request module defines functions and classe...
1 天前
-
297
`!urllib.robotparser` --- Parser for robots.txt
urllib.robotparser
Source code:
Lib/urllib/robotparser.py
single: WWW single: World Wide Web single: URL s...
1 天前
-
298
`!uu` --- Encode and decode uuencode files
uu
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3.13 <...
1 天前
-
299
`!uuid` --- UUID objects according to `9562`
uuid
Source code:
Lib/uuid.py
This module provides immutable
UUID objects (the
UUID class) and
function...
1 天前
-
300
`!venv` --- Creation of virtual environments
venv
3.3
Source code:
Lib/venv/
pair: Environments; virtual
The
!venv module supports creating lightweigh...
1 天前
-
301
`!warnings` --- Warning control
warnings
Source code:
Lib/warnings.py
single: warnings
Warning messages are typically issued in situations...
1 天前
-
302
`!wave` --- Read and write WAV files
wave
Source code:
Lib/wave.py
The
!wave module provides a convenient interface to the Waveform Audio "WAV...
1 天前
-
303
`!weakref` --- Weak references
weakref
Source code:
Lib/weakref.py
The
!weakref module allows the Python programmer to create
weak refe...
1 天前
-
304
`!webbrowser` --- Convenient web-browser controller
webbrowser
Source code:
Lib/webbrowser.py
The
!webbrowser module provides a high-level interface to allow...
1 天前
-
305
MS Windows Specific Services
This chapter describes modules that are only available on MS Windows platforms.
msvcrt.rst winreg.rst winso...
1 天前
-
306
`!winreg` --- Windows registry access
winreg
Source code:
PC/winreg.c
These functions expose the Windows registry API to Python. Instead of usin...
1 天前
-
307
`!winsound` --- Sound-playing interface for Windows
winsound
Source code:
PC/winsound.c
The
!winsound module provides access to the basic sound-playing machi...
1 天前
-
308
`!wsgiref` --- WSGI Utilities and Reference Implementation
wsgiref
Source code:
Lib/wsgiref
[!WARNING]
!wsgiref is a reference implementation and is not recommended ...
1 天前
-
309
`!xdrlib` --- Encode and decode XDR data
xdrlib
3.11 3.13
This module is no longer part of the Python standard library. It was
removed in Python 3....
1 天前
-
310
`!xml.dom` --- The Document Object Model API
xml.dom
Source code:
Lib/xml/dom/__init__.py
The Document Object Model, or "DOM," is a cross-language API ...
1 天前
-
311
`!xml.dom.minidom` --- Minimal DOM implementation
xml.dom.minidom
Source code:
Lib/xml/dom/minidom.py
!xml.dom.minidom is a minimal implementation of the Do...
1 天前
-
312
`!xml.dom.pulldom` --- Support for building partial DOM trees
xml.dom.pulldom
Source code:
Lib/xml/dom/pulldom.py
The
!xml.dom.pulldom module provides a "pull parser" ...
1 天前
-
313
`!xml.etree.ElementTree` --- The ElementTree XML API
xml.etree.ElementTree
Source code:
Lib/xml/etree/ElementTree.py
The
!xml.etree.ElementTree module impleme...
1 天前
-
314
XML Processing Modules
xml
Source code:
Lib/xml/
Python's interfaces for processing XML are grouped in the
xml package.
[!NOTE]
...
1 天前
-
315
`!xml.sax.handler` --- Base classes for SAX handlers
xml.sax.handler
Source code:
Lib/xml/sax/handler.py
The SAX API defines five kinds of handlers: content ha...
1 天前
-
316
`!xml.sax` --- Support for SAX2 parsers
xml.sax
Source code:
Lib/xml/sax/__init__.py
The
!xml.sax package provides a number of modules which impl...
1 天前
-
317
`!xml.sax.xmlreader` --- Interface for XML parsers
xml.sax.xmlreader
Source code:
Lib/xml/sax/xmlreader.py
SAX parsers implement the
XMLReader interface. Th...
1 天前
-
318
`!xml.sax.saxutils` --- SAX Utilities
xml.sax.saxutils
Source code:
Lib/xml/sax/saxutils.py
The module
!xml.sax.saxutils contains a number of c...
1 天前
-
319
`!xmlrpc.client` --- XML-RPC client access
xmlrpc.client
Source code:
Lib/xmlrpc/client.py
XML-RPC is a Remote Procedure Call method that uses XML pa...
1 天前
-
320
`!xmlrpc` --- XMLRPC server and client modules
xmlrpc
XML-RPC is a Remote Procedure Call method that uses XML passed via HTTP as a transport. With it, a c...
1 天前
-
321
`!xmlrpc.server` --- Basic XML-RPC servers
xmlrpc.server
Source code:
Lib/xmlrpc/server.py
The
!xmlrpc.server module provides a basic server framewo...
1 天前
-
322
`!zipapp` --- Manage executable Python zip archives
zipapp
3.5
Source code:
Lib/zipapp.py
single: Executable Zip Files
This module provides tools to manage th...
1 天前
-
323
`!zipfile` --- Work with ZIP archives
zipfile
Source code:
Lib/zipfile/
The ZIP file format is a common archive and compression standard. This m...
1 天前
-
324
`!zipimport` --- Import modules from Zip archives
zipimport
Source code:
Lib/zipimport.py
This module adds the ability to import Python modules (
\*.py,
\*...
1 天前
-
325
`!zlib` --- Compression compatible with `gzip`
zlib
For applications that require data compression, the functions in this module allow compression and dec...
1 天前
-
326
`!zoneinfo` --- IANA time zone support
zoneinfo
3.9
Source code:
Lib/zoneinfo
The
!zoneinfo module provides a concrete time zone implementation ...
1 天前