Python 官方模块

Python Module Index

_ |  a |  b |  c |  d |  e |  f |  g |  h |  i |  j |  k |  l |  m |  n |  o |  p |  q |  r |  s |  t |  u |  v |  w |  x |  z
   
 _ 
 __builtin__The module that provides the built-in namespace.
 __future__Future statement definitions
 __main__The environment where the top-level script is run.
 _winreg (Windows)Routines and objects for manipulating the Windows registry.
   
 a 
 abcAbstract base classes according to PEP 3119.
 aepack (Mac)Deprecated: Conversion between Python variables and AppleEvent data containers.
 aetools (Mac)Deprecated: Basic support for sending Apple Events
 aetypes (Mac)Deprecated: Python representation of the Apple Event Object Model.
 aifcRead and write audio files in AIFF or AIFC format.
 al (IRIX)Deprecated: Audio functions on the SGI.
 AL (IRIX)Deprecated: Constants used with the al module.
 anydbmGeneric interface to DBM-style database modules.
 applesingle (Mac)Deprecated: Rudimentary decoder for AppleSingle format files.
 argparseCommand-line option and argument parsing library.
 arraySpace efficient arrays of uniformly typed numeric values.
 astAbstract Syntax Tree classes and manipulation.
 asynchatSupport for asynchronous command/response protocols.
 asyncoreA base class for developing asynchronous socket handling services.
 atexitRegister and execute cleanup functions.
 audioopManipulate raw audio data.
 autoGIL (Mac)Deprecated: Global Interpreter Lock handling in event loops.
   
 b 
 base64RFC 3548: Base16, Base32, Base64 Data Encodings
 BaseHTTPServerBasic HTTP server (base class for SimpleHTTPServer and CGIHTTPServer).
 BastionDeprecated: Providing restricted access to objects.
 bdbDebugger framework.
 binasciiTools for converting between binary and various ASCII-encoded binary representations.
 binhexEncode and decode files in binhex4 format.
 bisectArray bisection algorithms for binary searching.
 bsddbInterface to Berkeley DB database library
 buildtools (Mac)Deprecated: Helper module for BuildApplet, BuildApplication and macfreeze.
 bz2Interface to compression and decompression routines compatible with bzip2.
   
 c 
 calendarFunctions for working with calendars, including some emulation of the Unix cal program.
-Carbon
 cd (IRIX)Deprecated: Interface to the CD-ROM on Silicon Graphics systems.
 cfmfile (Mac)Deprecated: Code Fragment Resource module.
 cgiHelpers for running Python scripts via the Common Gateway Interface.
 CGIHTTPServerThis module provides a request handler for HTTP servers which can run CGI scripts.
 cgitbConfigurable traceback handler for CGI scripts.
 chunkModule to read IFF chunks.
 cmathMathematical functions for complex numbers.
 cmdBuild line-oriented command interpreters.
 codeFacilities to implement read-eval-print loops.
 codecsEncode and decode data and streams.
 codeopCompile (possibly incomplete) Python code.
 collectionsHigh-performance datatypes
 ColorPicker (Mac)Deprecated: Interface to the standard color selection dialog.
 colorsysConversion functions between RGB and other color systems.
 commands (Unix)Deprecated: Utility functions for running external commands.
 compileallTools for byte-compiling all Python source files in a directory tree.
-compilerDeprecated: Python code compiler written in Python.
 ConfigParserConfiguration file parser.
 contextlibUtilities for with-statement contexts.
 CookieSupport for HTTP state management (cookies).
 cookielibClasses for automatic handling of HTTP cookies.
 copyShallow and deep copy operations.
 copy_regRegister pickle support functions.
 cPickleFaster version of pickle, but not subclassable.
 cProfile
 crypt (Unix)The crypt() function used to check Unix passwords.
 cStringIOFaster version of StringIO, but not subclassable.
 csvWrite and read tabular data to and from delimited files.
 ctypesA foreign function library for Python.
-curses (Unix)An interface to the curses library, providing portable terminal handling.
   
 d 
 datetimeBasic date and time types.
 dbhashDBM-style interface to the BSD database library.
 dbm (Unix)The standard "database" interface, based on ndbm.
 decimalImplementation of the General Decimal Arithmetic Specification.
 DEVICE (IRIX)Deprecated: Constants used with the gl module.
 difflibHelpers for computing differences between objects.
 dircacheDeprecated: Return directory listing, with cache mechanism.
 disDisassembler for Python bytecode.
-distutilsSupport for building and installing Python modules into an existing Python installation.
 dl (Unix)Deprecated: Call C functions in shared objects.
 doctestTest pieces of code within docstrings.
 DocXMLRPCServerSelf-documenting XML-RPC server implementation.
 dumbdbmPortable implementation of the simple DBM interface.
 dummy_threadDrop-in replacement for the thread module.
 dummy_threadingDrop-in replacement for the threading module.
   
 e 
 EasyDialogs (Mac)Deprecated: Basic Macintosh dialogs.
-emailPackage supporting the parsing, manipulating, and generating email messages, including MIME documents.
-encodings
 errnoStandard errno system symbols.
 exceptionsStandard exception classes.
   
 f 
 fcntl (Unix)The fcntl() and ioctl() system calls.
 filecmpCompare files efficiently.
 fileinputLoop over standard input or a list of files.
 findertools (Mac)Wrappers around the finder's Apple Events interface.
 FL (IRIX)Deprecated: Constants used with the fl module.
 fl (IRIX)Deprecated: FORMS library for applications with graphical user interfaces.
 flp (IRIX)Deprecated: Functions for loading stored FORMS designs.
 fm (IRIX)Deprecated: Font Manager interface for SGI workstations.
 fnmatchUnix shell style filename pattern matching.
 formatterGeneric output formatter and device interface.
 fpectl (Unix)Provide control for floating point exception handling.
 fpformatDeprecated: General floating point formatting functions.
 fractionsRational numbers.
 FrameWork (Mac)Deprecated: Interactive application framework.
 ftplibFTP protocol client (requires sockets).
 functoolsHigher-order functions and operations on callable objects.
 future_builtins
   
 g 
 gcInterface to the cycle-detecting garbage collector.
 gdbm (Unix)GNU's reinterpretation of dbm.
 gensuitemodule (Mac)Create a stub package from an OSA dictionary
 getoptPortable parser for command line options; support both short and long option names.
 getpassPortable reading of passwords and retrieval of the userid.
 gettextMultilingual internationalization services.
 gl (IRIX)Deprecated: Functions from the Silicon Graphics Graphics Library.
 GL (IRIX)Deprecated: Constants used with the gl module.
 globUnix shell style pathname pattern expansion.
 grp (Unix)The group database (getgrnam() and friends).
 gzipInterfaces for gzip compression and decompression using file objects.
   
 h 
 hashlibSecure hash and message digest algorithms.
 heapqHeap queue algorithm (a.k.a. priority queue).
 hmacKeyed-Hashing for Message Authentication (HMAC) implementation for Python.
-hotshotHigh performance logging profiler, mostly written in C.
 htmlentitydefsDefinitions of HTML general entities.
 htmllibDeprecated: A parser for HTML documents.
 HTMLParserA simple parser that can handle HTML and XHTML.
 httplibHTTP and HTTPS protocol client (requires sockets).
   
 i 
 ic (Mac)Deprecated: Access to the Mac OS X Internet Config.
 icopen (Mac)Deprecated: Internet Config replacement for open().
 imageopDeprecated: Manipulate raw image data.
 imaplibIMAP4 protocol client (requires sockets).
 imgfile (IRIX)Deprecated: Support for SGI imglib files.
 imghdrDetermine the type of image contained in a file or byte stream.
 impAccess the implementation of the import statement.
 importlibConvenience wrappers for __import__
 imputilDeprecated: Manage and augment the import process.
 inspectExtract information and source code from live objects.
 ioCore tools for working with streams.
 itertoolsFunctions creating iterators for efficient looping.
   
 j 
 jpeg (IRIX)Deprecated: Read and write image files in compressed JPEG format.
 jsonEncode and decode the JSON format.
   
 k 
 keywordTest whether a string is a keyword in Python.
   
 l 
 lib2to3the 2to3 library
 linecacheThis module provides random access to individual lines from text files.
 localeInternationalization services.
-loggingFlexible event logging system for applications.
   
 m 
 macerrors (Mac)Deprecated: Constant definitions for many Mac OS error codes.
 MacOS (Mac)Deprecated: Access to Mac OS-specific interpreter features.
 macostools (Mac)Deprecated: Convenience routines for file manipulation.
 macpathMac OS 9 path manipulation functions.
 macresource (Mac)Deprecated: Locate script resources.
 mailboxManipulate mailboxes in various formats
 mailcapMailcap file handling.
 marshalConvert Python objects to streams of bytes and back (with different constraints).
 mathMathematical functions (sin() etc.).
 md5Deprecated: RSA's MD5 message digest algorithm.
 mhlibDeprecated: Manipulate MH mailboxes from Python.
 mimetoolsDeprecated: Tools for parsing MIME-style message bodies.
 mimetypesMapping of filename extensions to MIME types.
 MimeWriterDeprecated: Write MIME format files.
 mimifyDeprecated: Mimification and unmimification of mail messages.
 MiniAEFrame (Mac)Support to act as an Open Scripting Architecture (OSA) server ("Apple Events").
 mmapInterface to memory-mapped files for Unix and Windows.
 modulefinderFind modules used by a script.
 msilib (Windows)Creation of Microsoft Installer files, and CAB files.
 msvcrt (Windows)Miscellaneous useful routines from the MS VC++ runtime.
 multifileDeprecated: Support for reading files which contain distinct parts, such as some MIME data.
-multiprocessingProcess-based "threading" interface.
 mutexDeprecated: Lock and queue for mutual exclusion.
   
 n 
 Nav (Mac)Deprecated: Interface to Navigation Services.
 netrcLoading of .netrc files.
 newDeprecated: Interface to the creation of runtime implementation objects.
 nis (Unix)Interface to Sun's NIS (Yellow Pages) library.
 nntplibNNTP protocol client (requires sockets).
 numbersNumeric abstract base classes (Complex, Real, Integral, etc.).
   
 o 
 operatorFunctions corresponding to the standard operators.
 optparseDeprecated: Command-line option parsing library.
-osMiscellaneous operating system interfaces.
 ossaudiodev (Linux, FreeBSD)Access to OSS-compatible audio devices.
   
 p 
 parserAccess parse trees for Python source code.
 pdbThe Python debugger for interactive interpreters.
 pickleConvert Python objects to streams of bytes and back.
 pickletoolsContains extensive comments about the pickle protocols and pickle-machine opcodes, as well as some useful functions.
 pipes (Unix)A Python interface to Unix shell pipelines.
 PixMapWrapper (Mac)Deprecated: Wrapper for PixMap objects.
 pkgutilUtilities for the import system.
 platformRetrieves as much platform identifying data as possible.
 plistlibGenerate and parse Mac OS X plist files.
 popen2Deprecated: Subprocesses with accessible standard I/O streams.
 poplibPOP3 protocol client (requires sockets).
 posix (Unix)The most common POSIX system calls (normally used via module os).
 posixfile (Unix)Deprecated: A file-like object with support for locking.
 pprintData pretty printer.
 profilePython source profiler.
 pstatsStatistics object for use with the profiler.
 pty (Linux)Pseudo-Terminal Handling for Linux.
 pwd (Unix)The password database (getpwnam() and friends).
 py_compileGenerate byte-code files from Python source files.
 pyclbrSupports information extraction for a Python class browser.
 pydocDocumentation generator and online help system.
   
 q 
 QueueA synchronized queue class.
 quopriEncode and decode files using the MIME quoted-printable encoding.
   
 r 
 randomGenerate pseudo-random numbers with various common distributions.
 reRegular expression operations.
 readline (Unix)GNU readline support for Python.
 reprAlternate repr() implementation with size limits.
 resource (Unix)An interface to provide resource usage information on the current process.
 rexecDeprecated: Basic restricted execution framework.
 rfc822Deprecated: Parse 2822 style mail messages.
 rlcompleterPython identifier completion, suitable for the GNU readline library.
 robotparserLoads a robots.txt file and answers questions about fetchability of other URLs.
 runpyLocate and run Python modules without importing them first.
   
 s 
 schedGeneral purpose event scheduler.
 ScrolledText (Tk)Text widget with a vertical scroll bar.
 selectWait for I/O completion on multiple streams.
 setsDeprecated: Implementation of sets of unique elements.
 sgmllibDeprecated: Only as much of an SGML parser as needed to parse HTML.
 shaDeprecated: NIST's secure hash algorithm, SHA.
 shelvePython object persistence.
 shlexSimple lexical analysis for Unix shell-like languages.
 shutilHigh-level file operations, including copying.
 signalSet handlers for asynchronous events.
 SimpleHTTPServerThis module provides a basic request handler for HTTP servers.
 SimpleXMLRPCServerBasic XML-RPC server implementation.
 siteModule responsible for site-specific configuration.
 smtpdA SMTP server implementation in Python.
 smtplibSMTP protocol client (requires sockets).
 sndhdrDetermine type of a sound file.
 socketLow-level networking interface.
 SocketServerA framework for network servers.
 spwd (Unix)The shadow password database (getspnam() and friends).
 sqlite3A DB-API 2.0 implementation using SQLite 3.x.
 sslTLS/SSL wrapper for socket objects
 statUtilities for interpreting the results of os.stat(), os.lstat() and os.fstat().
 statvfsDeprecated: Constants for interpreting the result of os.statvfs().
 stringCommon string operations.
 StringIORead and write strings as if they were files.
 stringprepDeprecated: String preparation, as per RFC 3453
 structInterpret strings as packed binary data.
 subprocessSubprocess management.
 sunauProvide an interface to the Sun AU sound format.
 sunaudiodev (SunOS)Deprecated: Access to Sun audio hardware.
 SUNAUDIODEV (SunOS)Deprecated: Constants for use with sunaudiodev.
 symbolConstants representing internal nodes of the parse tree.
 symtableInterface to the compiler's internal symbol tables.
 sysAccess system-specific parameters and functions.
 sysconfigPython's configuration information
 syslog (Unix)An interface to the Unix syslog library routines.
   
 t 
 tabnannyTool for detecting white space related problems in Python source files in a directory tree.
 tarfileRead and write tar-format archive files.
 telnetlibTelnet client class.
 tempfileGenerate temporary files and directories.
 termios (Unix)POSIX style tty control.
-testRegression tests package containing the testing suite for Python.
 textwrapText wrapping and filling
 threadCreate multiple threads of control within one interpreter.
 threadingHigher-level threading interface.
 timeTime access and conversions.
 timeitMeasure the execution time of small code snippets.
 TixTk Extension Widgets for Tkinter
 TkinterInterface to Tcl/Tk for graphical user interfaces
 tokenConstants representing terminal nodes of the parse tree.
 tokenizeLexical scanner for Python source code.
 traceTrace or track Python statement execution.
 tracebackPrint or retrieve a stack traceback.
 ttkTk themed widget set
 tty (Unix)Utility functions that perform common terminal control operations.
 turtleTurtle graphics for Tk
 typesNames for built-in types.
   
 u 
 unicodedataAccess the Unicode Database.
 unittestUnit testing framework for Python.
 urllibOpen an arbitrary network resource by URL (requires sockets).
 urllib2Next generation URL opening library.
 urlparseParse URLs into or assemble them from components.
 userDeprecated: A standard way to reference user-specific modules.
 UserDictClass wrapper for dictionary objects.
 UserListClass wrapper for list objects.
 UserStringClass wrapper for string objects.
 uuEncode and decode files in uuencode format.
 uuidUUID objects (universally unique identifiers) according to RFC 4122
   
 v 
 videoreader (Mac)Deprecated: Read QuickTime movies frame by frame for further processing.
   
 w 
 W (Mac)Deprecated: Widgets for the Mac, built on top of FrameWork.
 warningsIssue warning messages and control their disposition.
 waveProvide an interface to the WAV sound format.
 weakrefSupport for weak references and weak dictionaries.
 webbrowserEasy-to-use controller for Web browsers.
 whichdbGuess which DBM-style module created a given database.
 winsound (Windows)Access to the sound-playing machinery for Windows.
-wsgirefWSGI Utilities and Reference Implementation.
   
 x 
 xdrlibEncoders and decoders for the External Data Representation (XDR).
-xmlPackage containing XML processing modules
 xmlrpclibXML-RPC client access.
   
 z 
 zipfileRead and write ZIP-format archive files.
 zipimportsupport for importing Python modules from ZIP archives.
 zlibLow-level interface to compression and decompression routines compatible with gzip.
«
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值