so i open this url with
fh = urllib2.urlopen()
for eachline in fh.readlines()
print eachline
.........
now i want to go back to the beginning, and parse the page again.
is there a seek(0) or ?
a9 发帖数: 21638
2
fh = urllib2.urlopen()
fl = fh.readlines()
for eachline in fl:
print eachline
for eachline in fl:
print eachline
这样?
【在 w*s 的大作中提到】 : so i open this url with : fh = urllib2.urlopen() : for eachline in fh.readlines() : print eachline : ......... : now i want to go back to the beginning, and parse the page again. : is there a seek(0) or ?
w*s 发帖数: 7227
3
一个字:牛!
【在 a9 的大作中提到】 : fh = urllib2.urlopen() : fl = fh.readlines() : for eachline in fl: : print eachline : for eachline in fl: : print eachline : 这样?