2018-10-29 回答
我也来几个吧
standard libs:
itertools http://docs.python.org/2/library/itertools.html
functools http://docs.python.org/2/library/functools.html 学好python有必要掌握上面这两个库吧,
python为什么叫爬虫,re 正则
subprocess http://docs.python.org/2/library/subprocess.html 调用shell命令的神器
pdb 调试
traceback 调试
pprint 漂亮的输出
logging 日志
python编程?threading和multiprocessing 多线程
urllib/urllib2/httplib http库,httplib底层一点,推荐第三方的库requests
os/sys 系统,环境相关
queue 队列
pickle/cpickle 序列化工具
hashlib md5, sha等hash算法
python web、cvs
json/simplejson python的json库,据so上的讨论和benchmark,simplejson的性能要高于json
timeit 计算代码运行的时间等等
cprofile python性能测量模块
glob 类似与listfile,可以用来查找文件
atexit 有一个注册函数,可用于正好在脚本退出运行前执行一些代码
python数据类型。dis python 反汇编,当对某条语句不理解原理时,可以用dis.dis 函数来查看代码对应的python 解释器指令等等。
3th libs:
paramiko https://github.com/paramiko/paramiko ssh python 库
selenium https://pypi.python.org/pypi/selenium 浏览器自动化测试工具selenium的python 接口
lxml http://lxml.de/ python 解析html,xml 的神器
mechanize https://pypi.python.org/pypi/mechanize/ stateful programmatic web browsing
python和java?pycurl https://pypi.python.org/pypi/pycurl curl library module for python
fabric http://docs.fabfile.org/en/1.8/
fabric is a python (2.5 or higher) library and command-line tool for
streamlining the use of ssh for application deployment or systems
administration tasks.
xmltodict https://github.com/martinblech/xmltodict xml 转 dict,真心好用
python爬虫教程,urllib3 和 requests: 当然其实requests就够了 requests: http for humans
flask http://flask.pocoo.org/python web 微框架
ipdb 调试神器,同时推荐ipython!结合ipython使用
redis redis python接口
pymongo mongodbpython接口
pil http://www.pythonware.com/products/pil/ python图像处理
r语言和python。mako http://www.makotemplates.org/ python模版引擎
numpy , scipy 科学计算
matplotlib 画图
scrapy 爬虫
django/tornado/web.py/web2py/uliweb/flask/twisted/bottle/cherrypy.等等 python web框架/服务器
sh 1.08 — sh v1.08 documentation 用来运行shell 模块的 极佳选择
python3?暂时记得这么多吧,不过都是我自己常用的库 :) 。。欢迎补充
update:
a curated list of awesome python frameworks, libraries and software.
vinta/awesome-python · github
几乎所有很赞的 python 库,和框架都在这个列表里。
其他的 awesome list:
python自带的库有哪些?bayandin/awesome-awesomeness · github
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态