Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-10 Thread Terry Reedy
oth of these two instructions are executed ,I just want to know Is there any difference between print 3 and print '3' in Python ? thx everyone Here's a future import though I used,so I can use the planned 3 with a 2x python version in the com

Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-10 Thread Benjamin Kaplan
statement produces the same result when both of these >>>> two instructions are executed ,I just want to know Is there any difference >>>> between print 3 and print '3' in Python ? >>> >>> thx everyone >> >> > > Here's a future

Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-09 Thread Dwight Hutto
want to know Is there any difference >>> between print 3 and print '3' in Python ? >>> >> thx everyone >> > > Here's a future import though I used,so I can use the planned 3 with a 2x python version in the command line interpreter: Microsoft Windows [Vers

Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-09 Thread Ian Foote
On 09/09/12 14:23, iMath wrote: 在 2012年3月26日星期一UTC+8下午7时45分26秒,iMath写道: I know the print statement produces the same result when both of these two instructions are executed ,I just want to know Is there any difference between print 3 and print '3' in Python ? thx everyone The dif

Re: Is there any difference between print 3 and print '3' in Python ?

2012-09-09 Thread iMath
在 2012年3月26日星期一UTC+8下午7时45分26秒,iMath写道: > I know the print statement produces the same result when both of these two > instructions are executed ,I just want to know Is there any difference > between print 3 and print '3' in Python ? thx everyone -- http://mail.python.o

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread rusi
ed ,I just want to know Is there any > >> difference between print 3 and print '3' in Python ? > > > This is a non-question.  The input is the same, the output is the same, > > what else matters? > > def fib1(n): >     if n == 0: return 0 >     elif n ==

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Steven D'Aprano
On Mon, 26 Mar 2012 08:11:03 -0400, Dave Angel wrote: > On 03/26/2012 07:45 AM, redstone-c...@163.com wrote: >> I know the print statement produces the same result when both of these >> two instructions are executed ,I just want to know Is there any >> difference between pri

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Peter Otten
redstone-c...@163.com wrote: > I know the print statement produces the same result when both of these two > instructions are executed ,I just want to know Is there any difference > between print 3 and print '3' in Python ? The question you really wanted to ask is: under what

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread J. Cliff Dyer
hen format them using standard string formatting operations when you want to print them. There's more information on how to do formatting here: http://docs.python.org/library/stdtypes.html#string-formatting Cheers, Cliff On Mon, 2012-03-26 at 04:45 -0700, redstone-c...@163.com

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Terry Reedy
On 3/26/2012 7:45 AM, redstone-c...@163.com wrote: I know the print statement produces the same result when both of these two instructions are executed ,I just want to know Is there any difference between print 3 and print '3' in Python ? If you want to see the difference between

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Stefan Behnel
now Is there any difference >>> between print 3 and print '3' in Python ? >> >> This is a non-question. The input is the same, the output is the same, >> what else matters? >> >> On the other hand, if you want to dig deeper, there are lots of diffe

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Colton Myers
> I know the print statement produces the same result when both of these two > instructions are executed ,I just want to know Is there any difference > between print 3 and print '3' in Python ? Sure there is. The first converts the integer 3 to a string ("3"), the

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread redstone-cold
ge points to a different character > > -- > > DaveA 在 2012年3月26日星期一UTC+8下午8时11分03秒,Dave Angel写道: > On 03/26/2012 07:45 AM, redstone-c...@163.com wrote: > > I know the print statement produces the same result when both of these two > > instructions are executed ,I ju

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Robert Kern
On 3/26/12 12:45 PM, redstone-c...@163.com wrote: I know the print statement produces the same result when both of these two instructions are executed ,I just want to know Is there any difference between print 3 and print '3' in Python ? Yes, there is a difference, but not muc

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Dave Angel
On 03/26/2012 07:45 AM, redstone-c...@163.com wrote: I know the print statement produces the same result when both of these two instructions are executed ,I just want to know Is there any difference between print 3 and print '3' in Python ? This is a non-question. The input is the

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Kiuhnm
On 3/26/2012 13:45, redstone-c...@163.com wrote: I know the print statement produces the same result when both of these two instructions are executed ,I just want to know Is there any difference between print 3 and print '3' in Python ? The former prints a number while the latte

Re: Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread Chris Angelico
On Mon, Mar 26, 2012 at 10:45 PM, wrote: > I know the print statement produces the same result when both of these two > instructions are executed ,I just want to know Is there any difference > between print 3 and print '3' in Python ? One of them takes the integer 3, conver

Is there any difference between print 3 and print '3' in Python ?

2012-03-26 Thread redstone-cold
I know the print statement produces the same result when both of these two instructions are executed ,I just want to know Is there any difference between print 3 and print '3' in Python ? -- http://mail.python.org/mailman/listinfo/python-list