"GoodPotatoes" wrote
print page1.readlines()
From this excercise, the first time I read page1 I get all of the lines.
The best thing to do is store them in a variable then print them.
That way you can access them at will:
lines = page1.readlines()
print lines # all of them as a list
pr
GoodPotatoes wrote:
I'm not sure if I've been searching using the correct terms. After
I've iterated through an object, such as a cursor or webpage, how do I
get back to the "top"?
e.g.
tutorial from http://www.daniweb.com/code/snippet563.html#
print page1.readlines()
Capture the lines in
I'm not sure if I've been searching using the correct terms. After I've
iterated through an object, such as a cursor or webpage, how do I get back to
the "top"?
e.g.
tutorial from http://www.daniweb.com/code/snippet563.html#
print page1.readlines()
>From this excercise, the first time I read