python 常用库
GUI 图形界面
1.wxpython
Python下的GUI编程框架,与MFC的架构相似
下载地址:http://wxpython.org/download.php
2. PyQt
用于Python的QT开发库
下载地址:http://www.riverbankcomputing.com/software/pyqt/download
Web框架
- Django
开源web开发框架,它鼓励快速开发,并遵循MVC设计
下载地址: http://www.djangoproject.com/
2. web2py
一个小巧灵活的Web框架,虽然简单但是功能强大
下载地址:http://web2py.com/
科学计算
- Matplotlib
用Python实现的类matlab的第三方库,用以绘制一些高质量的数学二维图形
下载地址:
http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.1.0/
2. SciPy
基于Python的matlab实现,旨在实现matlab的所有功能
下载地址:http://pypi.python.org/pypi/scipy/
3. NumPy
基于Python的科学计算第三方库,提供了矩阵,线性代数,傅立叶变换等等的解决方案
下载地址:http://pypi.python.org/pypi/numpy/
网页处理
- BeautifulSoup,强大的容错功能
网页处理非常强大的包
http://www.crummy.com/software/BeautifulSoup/
2. PyQuery,在Python中如网页的 jQuery一样处理文档
下载:https://pypi.python.org/pypi/pyquery
文档:https://pythonhosted.org/pyquery/
其他
- MySQLdb
用于连接MySQL数据库
下载地址:http://pypi.python.org/pypi/MySQL-python/
2. PIL
基于Python的图像处理库,功能强大,对图形文件的格式支持广泛
下载地址:http://effbot.org/zone/pil-index.htm
3. PyGame
基于Python的多媒体开发和游戏软件开发模块
下载地址:http://www.pygame.org/download.shtml
4. sh 系统管理
sh 可以让你像执行函数一样执行shell终端命令
下载地址:https://pypi.python.org/pypi/sh
5. pickle (cPickle)
6. json
7. random
8. datetime
特别介绍
- cx_Freeze
方便简洁的打包工具,可跨平台!
下载地址:http://cx-freeze.sourceforge.net/
2. psyco
脚本的执行效率多少有点差强人意,虽然优化起来并不是难事,但如果有简单的方法,近乎不用修改源代码,那当然值得去关注一下。psyco 的神奇在于它只需要在代码的入口处调用短短两行代码,性能就能提升 40% 或更多,真可谓是立竿见影!
如果你的客户觉得你的程序有点慢,敬请不要急着去优化代码,psyco 或许能让他立即改变看法。psyco 堪称 Python 的 jit,有许多潜力可以挖掘,如果剩下来给你优化性能的时间已经不多,请马上去阅读它的手册,有许多招儿轻松优化性能。