read files

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Jan 22 00:24:40 EST 2008


En Tue, 22 Jan 2008 02:03:10 -0200, Paul Rubin  
<"http://phr.cx"@NOSPAM.invalid> escribió:

> "J. Peng" <jpeng at block.duxieweb.com> writes:
>>         print line,
>
> Do you really want all the lines crunched together like that?  If not,
> leave off the comma.

Remember that Python *keeps* the end-of-line charater at the end of each  
line; if you leave out the comma, you'll print them doubly spaced.

-- 
Gabriel Genellina




More information about the Python-list mailing list