Re: What’s the differences between these two pieces of code ?
iMath
redstone-cold at 163.com
Sun Sep 9 09:27:53 EDT 2012
More information about the Python-list mailing list
Sun Sep 9 09:27:53 EDT 2012
- Previous message (by thread): Is there any difference between print 3 and print '3' in Python ?
- Next message (by thread): Re: What’s the differences between these two pieces of code ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
在 2012年7月7日星期六UTC+8下午12时56分35秒,iMath写道: > What’s the differences between these two pieces of code ? > > (1) > > for i in range(1, 7): > > print(2 * i, end=' ') > > > > thx everyone > > (2) > > for i in range(1, 7): > > print(2 * i, end=' ') > > print() > > > > > > when executed both respectively in Python shell ,I get the same effect . Who can tell me why ?
- Previous message (by thread): Is there any difference between print 3 and print '3' in Python ?
- Next message (by thread): Re: What’s the differences between these two pieces of code ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list