#!/usr/bin/python
#test2.py
import sys
import urllib2
j = True
jj = 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' jj = jj+1 print jj

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-07-17
  • 2022-01-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-15
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
相关资源
相似解决方案