美文网首页
Python的常用第三方库

Python的常用第三方库

作者: 三千万星辰 | 来源:发表于2016-01-27 10:51 被阅读307次

最全的在这里

https://github.com/vinta/awesome-python

some

1.sh-可以在python中直接调用shell命令,之前一直通过os活着commands来实现,现在也可以用这个,简单一点

from sh import ifconfig
print ifconfig("eth0")

2.request, HTTP常用库

>>> r = requests.get('https://api.github.com', auth=('user', 'pass'))
>>> r.status_code
204
>>> r.headers['content-type']
'application/json'
>>> r.text

3.pelican-貌似可以通过md格式快速生成博客网站,并且能够托管在S3、github上,还没用过,等有需要时可以看看

  1. Pygments--很有名的语法高亮的库了

相关文章

网友评论

      本文标题:Python的常用第三方库

      本文链接:https://www.haomeiwen.com/subject/bzbdkttx.html