Chinaunix首页 | 论坛 | 博客
  • 博客访问: 532363
  • 博文数量: 142
  • 博客积分: 2966
  • 博客等级: 少校
  • 技术积分: 1477
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-07 22:37
文章分类

全部博文(142)

文章存档

2013年(3)

2012年(21)

2011年(53)

2010年(33)

2009年(32)

发布时间:2013-05-06 13:59:56

使用gevent,可以对并发多个http请求的爬虫程序进行很好的优化, 缺点是,安装相对麻烦,这个包依赖于libevent,在windows下面用easy_install直接安装是不行的,必须用源代码包wget http://pypi.python.org/packages/source/g/gevent/gevent-0.13.8.tar.gztar zxvf gevent-0.13.8.tar.gzcd gevent.........【阅读全文】

阅读(1000) | 评论(0) | 转发(0)

发布时间:2013-04-11 16:31:33

flask sets up a redirect package called flask.ext where users should import the extensions from. If you for instance have a package called flask_something users would import it as flask.ext.something. This is done to transition from the old namespace packages. See Exten.........【阅读全文】

阅读(1954) | 评论(0) | 转发(0)

发布时间:2013-03-21 15:16:00

Python里类似PHP的htmlspecialchars()函数方法>>> import cgi >>> cgi.escape("<hello&goodbye>") '&lt;hello&amp;goodbye&gt;'......【阅读全文】

阅读(2442) | 评论(0) | 转发(0)

发布时间:2012-11-26 12:55:53

......【阅读全文】

阅读(3727) | 评论(0) | 转发(0)

发布时间:2012-11-12 00:15:23

......【阅读全文】

阅读(912) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册