Re: why not?
On 22/01/13 04:02, firstname.lastname@example.org wrote:
> f = open(r'c:\text\somefile.txt')
> for i in range(3):
> print str(i) + ': ' + f.readline(),
> please with the print str(i) + ‘: ‘ + f.readline(), why not print str(i)
> + f.readline(),
Try running both code. What do you see? What's the difference? When do
you think you might want one or the other?
|All times are GMT. The time now is 10:10 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.