欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Python Modules
(→Other Modules) |
|||
第174行: | 第174行: | ||
==Implementation Support Modules== | ==Implementation Support Modules== | ||
==Other Modules== | ==Other Modules== | ||
+ | |||
+ | [[Category:Python]] |
2010年8月22日 (日) 02:33的最后版本
returns a list of all module functions
>>> import os >>> dir(os) >>> help(os) >>> import sys >>> dir(sys) >>> help(sys)
- Global Module Index - http://docs.python.org/modindex.html
- http://www.effbot.org/librarybook/
[编辑] Core Modules
[编辑] __builtin__
__builtin__ -- Built-in objects
[编辑] exceptions
Built-in Exceptions
[编辑] os
os -- Miscellaneous operating system interfaces
[编辑] os.path
os.path -- Common pathname manipulations
[编辑] stat
stat -- Interpreting stat() results
[编辑] string
string -- Common string operations
[编辑] re
re -- Regular expression operations
[编辑] math
math -- Mathematical functions
[编辑] cmath
cmath -- Mathematical functions for complex numbers
[编辑] operator
operator -- Standard operators as functions.
[编辑] copy
copy -- Shallow and deep copy operations
[编辑] sys
sys -- System-specific parameters and functions
[编辑] atexit
atexit -- Exit handlers
[编辑] time
time -- Time access and conversions
[编辑] types
types -- Names for built-in types
[编辑] gc
gc -- Garbage Collector interface
[编辑] More Standard Modules
[编辑] fileinput
fileinput -- Iterate over lines from multiple input streams
[编辑] shutil
shutil -- High-level file operations
[编辑] tempfile
tempfile -- Generate temporary files and directories
[编辑] StringIO
StringIO -- Read and write strings as files
[编辑] cStringIO
cStringIO -- Faster version of StringIO
[编辑] mmap
mmap -- Memory-mapped file support
[编辑] UserDict
UserDict -- Class wrapper for dictionary objects
[编辑] UserList
UserList -- Class wrapper for list objects
[编辑] UserString
UserString -- Class wrapper for string objects
[编辑] traceback
traceback -- Print or retrieve a stack traceback
[编辑] errno
errno -- Standard errno system symbols
[编辑] getopt
getopt -- Parser for command line options
[编辑] getpass
getpass -- Portable password input
[编辑] glob
glob -- Unix style pathname pattern expansion
[编辑] fnmatch
fnmatch -- Unix filename pattern matching
[编辑] random
random -- Generate pseudo-random numbers
[编辑] whrandom
[编辑] md5
md5 -- MD5 message digest algorithm
[编辑] sha
sha -- SHA-1 message digest algorithm
[编辑] crypt
crypt -- Function to check Unix passwords
[编辑] rotor
[编辑] zlib
zlib -- Compression compatible with gzip
[编辑] code
code -- Interpreter base classes
[编辑] Threads and Processes
[编辑] threading
threading -- Higher-level threading interface
[编辑] Queue
Queue -- A synchronized queue class
[编辑] thread
thread -- Multiple threads of control
[编辑] commands
commands -- Utilities for running commands
[编辑] pipes
pipes -- Interface to shell pipelines
[编辑] popen2
popen2 -- Subprocesses with accessible I/O streams
[编辑] signal
signal -- Set handlers for asynchronous events
[编辑] Data Representation
[编辑] array
array -- Efficient arrays of numeric values
[编辑] struct
struct -- Interpret strings as packed binary data
[编辑] xdrlib
xdrlib -- Encode and decode XDR data
[编辑] marshal
marshal -- Internal Python object serialization
[编辑] pickle
pickle -- Python object serialization
[编辑] cPickle
cPickle -- A faster pickle
[编辑] copy_reg
copy_reg -- Register pickle support functions
[编辑] pprint
pprint -- Data pretty printer
[编辑] repr
repr -- Alternate repr() implementation
[编辑] base64
base64 -- RFC 3548: Base16, Base32, Base64 Data Encodings
[编辑] binhex
binhex -- Encode and decode binhex4 files
[编辑] quopri
quopri -- Encode and decode MIME quoted-printable data
[编辑] uu
uu -- Encode and decode uuencode files
[编辑] binascii
binascii -- Convert between binary and ASCII
[编辑] File Formats
[编辑] xml.dom
[编辑] xml.dom.minidom
[编辑] xml.dom.pulldom
[编辑] xml.etree.ElementTree
[编辑] xml.parsers.expat
[编辑] xml.sax
[编辑] xml.sax.handler
[编辑] xml.sax.saxutils
[编辑] xml.sax.xmlreader
[编辑] xmlrpclib
[编辑] sgmllib
sgmllib -- Simple SGML parser
[编辑] htmllib
htmllib -- A parser for HTML documents
[编辑] htmlentitydefs
htmlentitydefs -- Definitions of HTML general entities
[编辑] formatter
formatter -- Generic output formatting
[编辑] ConfigParser
ConfigParser -- Configuration file parser
[编辑] netrc
netrc -- netrc file processing
[编辑] shlex
shlex -- Simple lexical analysis
[编辑] zipfile
zipfile -- Work with ZIP archives
[编辑] gzip
gzip -- Support for gzip files