python必须要知道的库是什么

2013-01-17 01:02:00 +08:00
 yunan
表示不知道python的哪些库是比较重要的?求大家推荐一下。
6690 次点击
所在节点    Python
16 条回复
humiaozuzu
2013-01-17 01:34:13 +08:00
imom0
2013-01-17 01:42:41 +08:00
标准库。
tysx
2013-01-17 09:11:35 +08:00
标准库的os,sys
binux
2013-01-17 09:17:37 +08:00
__builtin__
aisk
2013-01-17 10:01:55 +08:00
requests
sh
venglide
2013-01-17 10:43:40 +08:00
个人网络整理,仅作参考:
[标准库]
argparse, copy, datetime, decimal, fnmatch, functools, glob, heapq, inspect, itertools, json, logging, math, operator, os, os.path, pickle, random, re, shutil, sqlite3, StringIO, subprocess, sys, tempfile, threading, time, urllib2, weakref, wsgiref, xml.dom, xml.sax
[外部库] 按个人兴趣自由选择
=== Graphical interface ===
wxPython http://wxpython.org
pyGtk http://www.pygtk.org
pyQT http://www.riverbankcomputing.co.uk/pyqt/
Pmw http://pmw.sourceforge.net/
Tkinter 3000 http://effbot.org/zone/wck.htm
Tix http://tix.sourceforge.net/

=== Database ===
MySQLdb http://sourceforge.net/projects/mysql-python
PyGreSQL http://www.pygresql.org/
Gadfly http://gadfly.sourceforge.net/
SQLAlchemy http://www.sqlalchemy.org/
psycopg http://www.initd.org/pub/software/psycopg/
kinterbasdb http://kinterbasdb.sourceforge.net/
cx_Oracle http://www.cxtools.net/default.aspx?nav=downloads
pySQLite http://initd.org/tracker/pysqlite

=== MSN Messenger ===
msnlib http://auriga.wearlab.de/~alb/msnlib/
pymsn http://telepathy.freedesktop.org/wiki/Pymsn
msnp http://msnp.sourceforge.net/

=== Network ===
Twisted http://twistedmatrix.com/

=== Images ===
PIL http://www.pythonware.com/products/pil/
gdmodule http://newcenturycomputers.net/projects/gdmodule.html
VideoCapture http://videocapture.sourceforge.net/

=== Sciences and Maths ===
scipy http://www.scipy.org/
NumPy http://numpy.scipy.org//
numarray http://www.stsci.edu/resources/software_hardware/numarray
matplotlib http://matplotlib.sourceforge.net/

=== Games ===
Pygame http://www.pygame.org/news.html
Pyglet http://www.pyglet.org/
PySoy http://www.pysoy.org/
pyOpenGL http://pyopengl.sourceforge.net/

=== Jabber ===
jabberpy http://jabberpy.sourceforge.net/

=== Web ===
scrape http://zesty.ca/python/scrape.html
Beautiful Soup http://crummy.com/software/BeautifulSoup
pythonweb http://www.pythonweb.org/
mechanize http://wwwsearch.sourceforge.net/mechanize/

=== Localisation ===
geoname.py http://www.zindep.com/blog-zindep/Geoname-python/

=== Serial port ===
pySerial http://pyserial.sourceforge.net/
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/
pywin32 http://sourceforge.net/projects/pywin32/
pywinauto http://www.openqa.org/pywinauto/
pyrtf http://pyrtf.sourceforge.net/
wmi http://timgolden.me.uk/python/wmi.html

=== PDA/GSM/Mobiles ===
pymo http://www.awaretek.com/pymo.html
pyS60 http://sourceforge.net/projects/pys60

=== Sound ===
pySoundic http://pysonic.sourceforge.net/
pyMedia http://pymedia.org/
FMOD http://www.fmod.org/
pyMIDI http://www.cs.unc.edu/Research/assist/developer.shtml

=== Others ===
[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
venglide
2013-01-17 10:46:53 +08:00
补充下,对于一些特别有名的库像django之类的,就不作提及了;新的库每天都在增加,自己去淘吧。
BOYPT
2013-01-17 13:31:08 +08:00
求这样的列表有意义么,难道你打算去把他们的手册都背一次。。。
swulling
2013-01-17 13:48:11 +08:00
@BOYPT 可以用来做技术选型参考,不过我更喜欢这个

http://docs.python-guide.org/en/latest/
thedevil7
2013-01-17 14:43:47 +08:00
都没人问问楼主用 Python 主要是干嘛么.... 我来!
jjx
2013-01-17 15:23:07 +08:00
不如改成 python有哪些杀手级的库,我个人比较推崇的是twisted, tornado, gevent ,sqlalchemy 觉得每个学python的都需要了解一下
tarsier
2013-01-17 15:30:51 +08:00
@jjx twisted越来越不被推荐啊, 都说gevent简单好用
jjx
2013-01-17 17:00:30 +08:00
@tarsier twisted和gevent两种思维,我喜欢直接的,没有隐藏,gevent太多magic ,而且对windows 支持也不够好
tarsier
2013-01-17 17:07:46 +08:00
@jjx twisted的思维实在是太twisted了。。。
jjx
2013-01-17 17:16:58 +08:00
@tarsier 其实对于twisted本身支持的协议,写法并非传言那样可怕,风格是template method式的.deferred回避不了了,比方说你用nodejs时,思维过了就过了,不过,就一直惧怕
yunan
2013-01-17 22:47:07 +08:00
谢谢大家啊。这个新年又有东西看了!!!

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/57837

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX