Python 模块

本文详细探讨了Python的模块系统,包括如何使用Python Module Index来组织和导入代码,以及在Unix和服务器环境下如何管理和利用模块。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Python Module Index

_
__future__ Future statement definitions
__main__ The environment where the top-level script is run.
_dummy_thread Drop-in replacement for the _thread module.
_thread Low-level threading API.
a
abc Abstract base classes according to :pep:`3119`.
aifc Read and write audio files in AIFF or AIFC format.
argparse Command-line option and argument parsing library.
array Space efficient arrays of uniformly typed numeric values.
ast Abstract Syntax Tree classes and manipulation.
asynchat Support for asynchronous command/response protocols.
asyncio Asynchronous I/O.
asyncore A base class for developing asynchronous socket handling services.
atexit Register and execute cleanup functions.
audioop Manipulate raw audio data.
b
base64 RFC 3548: Base16, Base32, Base64 Data Encodings; Base85 and Ascii85
bdb Debugger framework.
binascii Tools for converting between binary and various ASCII-encoded binary representations.
binhex Encode and decode files in binhex4 format.
bisect Array bisection algorithms for binary searching.
builtins The module that provides the built-in namespace.
bz2 Interfaces for bzip2 compression and decompression.
c
calendar Functions for working with calendars, including some emulation of the Unix cal program.
cgi Helpers for running Python scripts via the Common Gateway Interface.
cgitb Configurable traceback handler for CGI scripts.
chunk Module to read IFF chunks.
cmath Mathematical functions for complex numbers.
cmd Build line-oriented command interpreters.
code Facilities to implement read-eval-print loops.
codecs Encode and decode data and streams.
codeop Compile (possibly incomplete) Python code.
collections Container datatypes
    collections.abc Abstract base classes for containers
colorsys Conversion functions between RGB and other color systems.
compileall Tools for byte-compiling all Python source files in a directory tree.
concurrent
    concurrent.futures Execute computations concurrently using threads or processes.
configparser Configuration file parser.
contextlib Utilities for with-statement contexts.
contextvars Context Variables
copy Shallow and deep copy operations.
copyreg Register pickle support functions.
cProfile
crypt (Unix) The crypt() function used to check Unix passwords.
csv Write and read tabular data to and from delimited files.
ctypes A foreign function library for Python.
curses (Unix) An interface to the curses library, providing portable terminal handling.
    curses.ascii Constants and set-membership functions for ASCII characters.
    curses.panel A panel stack extension that adds depth to curses windows.
    curses.textpad Emacs-like input editing in a curses window.
d
dataclasses Generate special methods on user-defined classes.
datetime Basic date and time types.
dbm Interfaces to various Unix "database" formats.
    dbm.dumb Portable implementation of the simple DBM interface.
    dbm.gnu (Unix) GNU's reinterpretation of dbm.
    dbm.ndbm (Unix) The standard "database" interface, based on ndbm.
decimal Implementation of the General Decimal Arithmetic Specification.
difflib Helpers for computing differences between objects.
dis Disassembler for Python bytecode.
distutils Support for building and installing Python modules into an existing Python installation.
    distutils.archive_util Utility functions for creating archive files (tarballs, zip files, ...)
    distutils.bcppcompiler
    distutils.ccompiler Abstract CCompiler class
    distutils.cmd Provides the abstract base class :class:`~distutils.cmd.Command`. This class is subclassed by the modules in the distutils.command subpackage.
    distutils.command Contains one module for each standard Distutils command.
    distutils.command.bdist Build a binary installer for a package
    distutils.command.bdist_dumb Build a "dumb" installer - a simple archive of files
   
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值