OJ升级,代码可能会丢失. 所以要事先备份. 一开始傻傻的复制粘贴, 后来实在不能忍, 得益于大潇的启发和聪神的原始代码, 网页爬虫走起!
已经有段时间没看Python, 这次网页爬虫的原始代码是 python2.7版本, 试了一下修改到3.0版本, 要做很多包的更替,感觉比较烦,所以索性就在这个2.7版本上完善了.
首先观赏一下原始代码,我给加了一些注释:
# -*-...
分类:
编程语言 时间:
2014-05-15 02:39:45
阅读次数:
439
Difference Between Mod_Python & Mod_Wsgi |
eHow x YES NO Why not? Thanks for helping us to make eHow better for everyone.
eHow Computers Computer Netw...
分类:
编程语言 时间:
2014-05-15 02:12:12
阅读次数:
390
[Medusa-dev] psp_handler - embed python in HTML
like ASP[Medusa-dev] psp_handler - embed python in HTML like ASPKevin Smith
smithk at attbi.com Sun Ap...
分类:
编程语言 时间:
2014-05-15 01:47:14
阅读次数:
326
Python-based Template PackagesPython-based
Template PackagesWebBot - Build Web Apps as Easily as Native Ones - HomeBuild
Web Apps as Easily as Native ...
分类:
移动开发 时间:
2014-05-14 22:50:26
阅读次数:
348
为 Python Server Pages 和 Oracle 构建快速 Web 开发环境。 -
在水一方 - 博客频道 - CSDN.NET为 Python Server Pages 和 Oracle 构建快速 Web 开发环境。 分类: 技术空间
2008-06-12 10:43 301人阅读 评...
分类:
数据库 时间:
2014-05-14 22:41:57
阅读次数:
615
HOWTO Use Python in the web — Python v3.0.1
documentationmod_python?People coming from PHP often find it hard to grasp how
to use Python in the web. T...
分类:
编程语言 时间:
2014-05-14 22:31:33
阅读次数:
401
# 非波拉锲数列def fibs(num): the_list=[] a,b,i=0,1,1 for
i in range(num-1): a,b=b,a+b print bfibs(10)
分类:
编程语言 时间:
2014-05-14 22:00:27
阅读次数:
290
为Python添加默认模块搜索路径
方法一:函数添加
1) import sys
2) 查看sys.path
3) 添加sys.path.append("c:\\")
方法二:修改环境变量
windows用户可以修改系统环境变量PYTHONPATH
方法三:增加.pth文件,推荐!
在site-packages添加一个路径文件,如mypkpath.pth,必须以...
分类:
编程语言 时间:
2014-05-14 21:21:27
阅读次数:
419
众所周知,在android系统上,有时候我们遇到so文件的crash只能打log,但是很多时候并不知道crash在什么地方,幸运的是crash后,一般可以产生一个.dmp文件。
我们可以根据这个文件来得到更为详细的statck trace。
主要用的就是google提供的一些方法,命令太复杂,很容易出错,所以我写了一个python脚本,简化步骤。
详情可以参考 https://code.go...
分类:
移动开发 时间:
2014-05-14 19:45:57
阅读次数:
454