Nathan Wing escribió:
Hello All,
I've been racking my brain trying to figure out, what I imagine to be,
a very simple problem. I found the Intro to comp science MIT open
course
(http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2007/CourseHome/index.htm)
and was
Nathan Wing wrote:
Hello All,I've been racking my brain trying to figure out, what I imagine to
be, a very simple problem. I found the Intro to comp science MIT open
course (
http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2007/CourseHome/index.htm)
and was working
Hello All,I've been racking my brain trying to figure out, what I imagine to
be, a very simple problem. I found the Intro to comp science MIT open
course (
http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-00Fall-2007/CourseHome/index.htm)
and was working on the very first ho
"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
I don't know how much it's in use, but I thought gadfly (
http://gadfly.sourceforge.net/) was the db that's implemented in python.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor