可能经常用到的标准模块和第三方常用的50个库
本文由python培训班授课老师整理

数学计算:
    numbers — Numeric abstract base classes
    math — Mathematical functions
    cmath — Mathematical functions for complex numbers
    decimal — Decimal fixed point and floating point arithmetic
    fractions — Rational numbers
    random — Generate pseudo-random numbers
    itertools — Functions creating iterators for efficient looping
    functools — Higher-order functions and operations on callable objects
    operator — Standard operators as functions
文件和目录访问:
    os.path — Common pathname manipulations
    fileinput — Iterate over lines from multiple input streams
    stat — Interpreting stat() results
    statvfs — Constants used with os.statvfs()
    filecmp — File and Directory Comparisons
    tempfile — Generate temporary files and directories
    glob — Unix style pathname pattern expansion
    fnmatch — Unix filename pattern matching
    linecache — Random access to text lines
    shutil — High-level file operations
    dircache — Cached directory listings
    macpath — Mac OS 9 path manipulation functions
数据持久化:
    pickle — Python object serialization
    cPickle — A faster pickle
    copy_reg — Register pickle support functions
    shelve — Python object persistence
    marshal — Internal Python object serialization
    anydbm — Generic access to DBM-style databases
    whichdb — Guess which DBM module created a database
    dbm — Simple “database” interface
    gdbm — GNU’s reinterpretation of dbm
    dbhash — DBM-style interface to the BSD database library
    bsddb — Interface to Berkeley DB library
    dumbdbm — Portable DBM implementation
    sqlite3 — DB-API 2.0 interface for SQLite databases
通用操作系统服务:
    os — Miscellaneous operating system interfaces
    io — Core tools for working with streams
    time — Time access and conversions
    argparse — Parser for command-line options, arguments and sub-commands
    optparse — Parser for command line options
    getopt — C-style parser for command line options
    logging — Logging facility for Python
    logging.config — Logging configuration
    logging.handlers — Logging handlers
    getpass — Portable password input
    curses — Terminal handling for character-cell displays
    curses.textpad — Text input widget for curses programs
    curses.ascii — Utilities for ASCII characters
    curses.panel — A panel stack extension for curses
    platform — Access to underlying platform’s identifying data
    errno — Standard errno system symbols
    ctypes — A foreign function library for Python
可选的操作系统服务:
    select — Waiting for I/O completion
    threading — Higher-level threading interface
    thread — Multiple threads of control
    dummy_threading — Drop-in replacement for the threading module
    dummy_thread — Drop-in replacement for the thread module
    multiprocessing — Process-based “threading” interface
    mmap — Memory-mapped file support
    readline — GNU readline interface
    rlcompleter — Completion function for GNU readline
进程间通信和网络:
    subprocess — Subprocess management
    socket — Low-level networking interface
    ssl — TLS/SSL wrapper for socket objects
    signal — Set handlers for asynchronous events
    popen2 — Subprocesses with accessible I/O streams
    asyncore — Asynchronous socket handler
    asynchat — Asynchronous socket command/response handler
互联网数据处理:
    email — An email and MIME handling package
    json — JSON encoder and decoder
    mailcap — Mailcap file handling
    mailbox — Manipulate mailboxes in various formats
    mhlib — Access to MH mailboxes
    mimetools — Tools for parsing MIME messages
    mimetypes — Map filenames to MIME types
    MimeWriter — Generic MIME file writer
    mimify — MIME processing of mail messages
    multifile — Support for files containing distinct parts
    rfc822 — Parse RFC 2822 mail headers
    base64 — RFC 3548: Base16, Base32, Base64 Data Encodings
    binhex — Encode and decode binhex4 files
    binascii — Convert between binary and ASCII
    quopri — Encode and decode MIME quoted-printable data
    uu — Encode and decode uuencode files
结构化标记处理工具:
    HTMLParser — Simple HTML and XHTML parser
    sgmllib — Simple SGML parser
    htmllib — A parser for HTML documents
    htmlentitydefs — Definitions of HTML general entities
    XML Processing Modules
    XML vulnerabilities
    xml.etree.ElementTree — The ElementTree XML API
    xml.dom — The Document Object Model API
    xml.dom.minidom — Minimal DOM implementation
    xml.dom.pulldom — Support for building partial DOM trees
    xml.sax — Support for SAX2 parsers
    xml.sax.handler — Base classes for SAX handlers
    xml.sax.saxutils — SAX Utilities
    xml.sax.xmlreader — Interface for XML parsers
    xml.parsers.expat — Fast XML parsing using Expat
互联网协议和技术支持:
    webbrowser — Convenient Web-browser controller
    cgi — Common Gateway Interface support
    cgitb — Traceback manager for CGI scripts
    wsgiref — WSGI Utilities and Reference Implementation
    urllib — Open arbitrary resources by URL
    urllib2 — extensible library for opening URLs
    httplib — HTTP protocol client
    ftplib — FTP protocol client
    poplib — POP3 protocol client
    imaplib — IMAP4 protocol client
    nntplib — NNTP protocol client
    smtplib — SMTP protocol client
    smtpd — SMTP Server
    telnetlib — Telnet client
    uuid — UUID objects according to RFC 4122
    urlparse — Parse URLs into components
    SocketServer — A framework for network servers
    BaseHTTPServer — Basic HTTP server
    SimpleHTTPServer — Simple HTTP request handler
    CGIHTTPServer — CGI-capable HTTP request handler
    cookielib — Cookie handling for HTTP clients
    Cookie — HTTP state management
    xmlrpclib — XML-RPC client access
    SimpleXMLRPCServer — Basic XML-RPC server
    DocXMLRPCServer — Self-documenting XML-RPC server
第三方常用的50个库
Python: 50 modules for all needs
Graphical interface     wxPython     http://wxpython.org    
Graphical interface     pyGtk     http://www.pygtk.org    
Graphical interface     pyQT     http://www.riverbankcomputing.co.uk/pyqt/    
Graphical interface     Pmw     http://pmw.sourceforge.net/    
Graphical interface     Tkinter 3000     http://effbot.org/zone/wck.htm    
Graphical interface     Tix     http://tix.sourceforge.net/    
Database     MySQLdb     http://sourceforge.net/projects/mysql-python    
Database     PyGreSQL     http://www.pygresql.org/    
Database     Gadfly     http://gadfly.sourceforge.net/    
Database     SQLAlchemy     http://www.sqlalchemy.org/    
Database     psycopg     http://www.initd.org/pub/software/psycopg/    
Database     kinterbasdb     http://kinterbasdb.sourceforge.net/    
Database     cx_Oracle     http://www.cxtools.net/default.aspx?nav=downloads    
Database     pySQLite     http://initd.org/tracker/pysqlite    
MSN Messenger     msnlib     http://auriga.wearlab.de/~alb/msnlib/    
MSN Messenger     pymsn     http://telepathy.freedesktop.org/wiki/Pymsn    
MSN Messenger     msnp     http://msnp.sourceforge.net/    
Network     Twisted     http://twistedmatrix.com/    
Images     PIL     http://www.pythonware.com/products/pil/    
Images     gdmodule     http://newcenturycomputers.net/projects/gdmodule.html    
Images     VideoCapture     http://videocapture.sourceforge.net/    
Sciences and Maths     scipy     http://www.scipy.org/    
Sciences and Maths     NumPy     http://numpy.scipy.org//    
Sciences and Maths     numarray     http://www.stsci.edu/resources/software_hardware/numarray    
Sciences and Maths     matplotlib     http://matplotlib.sourceforge.net/    
Games     Pygame     http://www.pygame.org/news.html    
Games     Pyglet     http://www.pyglet.org/    
Games     PySoy     http://www.pysoy.org/    
Games     pyOpenGL     http://pyopengl.sourceforge.net/    
Jabber     jabberpy     http://jabberpy.sourceforge.net/    
Web     scrape     http://zesty.ca/python/scrape.html    
Web     Beautiful Soup     http://crummy.com/software/BeautifulSoup    
Web     pythonweb     http://www.pythonweb.org/    
Web     mechanize     http://wwwsearch.sourceforge.net/mechanize/    
Localisation     geoname.py     http://www.zindep.com/blog-zindep/Geoname-python/    
Serial port     pySerial     http://pyserial.sourceforge.net/    
Serial port     USPP     http://ibarona.googlepages.com/uspp    
Parallel Port     pyParallel     http://pyserial.sourceforge.net/pyparallel.html    
USB Port     pyUSB     http://bleyer.org/pyusb/    
Windows     ctypes     http://starship.python.net/crew/theller/ctypes/    
Windows     pywin32     http://sourceforge.net/projects/pywin32/    
Windows     pywinauto     http://www.openqa.org/pywinauto/    
Windows     pyrtf     http://pyrtf.sourceforge.net/    
Windows     wmi     http://timgolden.me.uk/python/wmi.html    
PDA/GSM/Mobiles     pymo     http://www.awaretek.com/pymo.html    
PDA/GSM/Mobiles     pyS60     http://sourceforge.net/projects/pys60    
Sound     pySoundic     http://pysonic.sourceforge.net/    
Sound     pyMedia     http://pymedia.org/    
Sound     FMOD     http://www.fmod.org/    
Sound     pyMIDI     http://www.cs.unc.edu/Research/assist/developer.shtml    
GMail     libgmail     http://libgmail.sourceforge.net/    
Google     pyGoogle     http://pygoogle.sourceforge.net/    
Expect     pyExpect     http://pexpect.sourceforge.net/    
WordNet     pyWordNet     http://osteele.com/projects/pywordnet/    
Command line     cmd     http://blog.doughellmann.com/2008/05/pymotw-cmd.html    
Compiler backend     llvm-py     http://mdevan.nfshost.com/llvm-py/    
3D     VPython     http://vpython.org

python常用函数 库 转的更多相关文章

  1. python常用函数库收集。

    学习过Python都知道python中有很多库.python本身就是万能胶水,众多强大的库/模块正是它的优势. 收集一些Python常用的函数库,方便大家选择要学习的库,也方便自己学习收集,熟悉运用好 ...

  2. python常用函数库及模块巧妙用法汇总

    在用python编写脚本或写程序过程中总要遇到一些对大文件或数据进行排序,计算,循环跌代等.我想下面这些函数库一定能用得到,总结如下:便于以后备查 列表去重(传说是列表去重最高效的方法): al = ...

  3. python常用三方库 - openpyxl

    目录 python常用三方库 - openpyxl 读取Excel文件 写入Excel文件 python常用三方库 - openpyxl openpyxl是一个第三方库, 可以处理xlsx格式的Exc ...

  4. Python常用的库简单介绍一下

    Python常用的库简单介绍一下fuzzywuzzy ,字符串模糊匹配. esmre ,正则表达式的加速器. colorama 主要用来给文本添加各种颜色,并且非常简单易用. Prettytable ...

  5. 【C++实现python字符串函数库】strip、lstrip、rstrip方法

    [C++实现python字符串函数库]strip.lstrip.rstrip方法 这三个方法用于删除字符串首尾处指定的字符,默认删除空白符(包括'\n', '\r', '\t', ' '). s.st ...

  6. 【C++实现python字符串函数库】二:字符串匹配函数startswith与endswith

    [C++实现python字符串函数库]字符串匹配函数startswith与endswith 这两个函数用于匹配字符串的开头或末尾,判断是否包含另一个字符串,它们返回bool值.startswith() ...

  7. 【C++实现python字符串函数库】一:分割函数:split、rsplit

    [C++实现python字符串函数库]split()与rsplit()方法 前言 本系列文章将介绍python提供的字符串函数,并尝试使用C++来实现这些函数.这些C++函数在这里做单独的分析,最后我 ...

  8. PHP 常用函数库和一些实用小技巧

    PHP 常用函数库和一些实用小技巧 作者: 字体:[增加 减小] 类型:转载   包括文件读取函式,文件写入函式,静态页面生成函式,目录删除函式等   文件读取函式 //文件读取函式 function ...

  9. yum安装的时候报错,关于python的函数库

    我在执行yum -y install nc命令的时候出现如下报错 There was a problem importing one of the Python modulesrequired to ...

随机推荐

  1. ACM位运算技巧

    ACM位运算技巧 位运算应用口位运算应用口诀位运算应用口诀 清零取反要用与,某位置一可用或 若要取反和交换,轻轻松松用异或 移位运算 要点 1 它们都是双目运算符,两个运算分量都是整形,结果也是整形. ...

  2. “System.Exception”类型的异常在 NHibernate.dll 中发生,但未在用户代码中进行处理

    “System.Exception”类型的异常在 NHibernate.dll 中发生,但未在用户代码中进行处理 其他信息: OCIEnvCreate 失败,返回代码为 -,但错误消息文本不可用. 如 ...

  3. nyoj 括号匹配

    这个方程有两种形式,本文采用 if(s[i]=s[j]) dp[i][j]=d[i-1][j-1]   dp[i][j]=min(dp[i][k]+dp[k+1][j],dp[i][j]) (i=&l ...

  4. POJ1502: MPI Maelstrom

    红果果的dijstra算法应用,这里采用邻接表存储图 小插曲:while(scanf("%d",&n))提交时内存超限,改成while(scanf("%d&quo ...

  5. SSDT – Error SQL70001 This statement is not recognized in this context-摘自网络

    March 28, 2013 — arcanecode One of the most common errors I get asked about when using SQL Server Da ...

  6. 【设计模式】单例设计模式的N中Java实现方法

    转载请注明出处:http://blog.csdn.net/ns_code/article/details/17359719 特点 单例模式的特点: 1.只能有一个实例: 2.必须自己创建自己的一个实例 ...

  7. JS中比較2个字符串内元素的不同(字符1, 字符2, 分隔符可选)

    比較2个字符串内元素的不同(字符1, 字符2, 分隔符可选) 文件: diff.js // 演示样例使用方法 /* var str1 = "tie, mao, 55"; var s ...

  8. WordPress公布新文章Email通知注冊用户

    非常多WordPress博客都开放了用户注冊的功能,用户能够參与到博客的内容建设其中来.也就是一个博客由多个用户来写.如今有这种需求,怎样实如今某一个用户发表文章后.其它用户都能收到Email通知?以 ...

  9. RHCA学习笔记:RH442-Unit9内核定时与进程延时

      Unit 9 Kernel Timing and Process Latency 内核定时与进程延时 学习目标: A.了解CPU 是怎样追踪时间的 B.调整CPU的访问次数 C.调整调度延时 D. ...

  10. 【转】Cocos2d-x纹理优化的一些方案——2013-08-26 22

    http://wap.oschina.net/question/565065_79814 在目前的移动平台游戏开发过程中,很多朋友会遇到开发出来的DEMO占用内存过大,导致渲染效率低下的问题.究其原因 ...