摘要: #!/usr/bin/python#test2.pyimport sysimport urllib2j = Truejj = 1##########用于统计,所以分页,url = 'http://localhost/acb/index.php?page=%s'while j: r = urllib2.urlopen(url %(jj),timeout=40).read() print 'r=%s' %(r) ####根据返回值,判断是否要继续执行 if r == 'ok': j = False print 'complete' j 阅读全文
posted @ 2013-11-21 18:05 flex_fly 阅读(700) 评论(0) 推荐(0) 编辑