Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #22179
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!feeder.news.tin.it!spool.news.tin.it!not-for-mail |
|---|---|
| Date | Mon, 26 Mar 2012 14:07:10 +0200 |
| From | Kiuhnm <kiuhnm03.4t.yahoo.it> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.python |
| Subject | Re: Is there any difference between print 3 and print '3' in Python ? |
| References | <5128580.32.1332762326119.JavaMail.geo-discussion-forums@pbom7> |
| In-Reply-To | <5128580.32.1332762326119.JavaMail.geo-discussion-forums@pbom7> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Lines | 8 |
| Message-ID | <4f705bf1$0$1385$4fafbaef@reader2.news.tin.it> (permalink) |
| Organization | TIN.IT (http://www.tin.it) |
| X-Comments | Please send technical notifications to newsmaster@tin.it |
| NNTP-Posting-Host | 87.7.88.3 |
| X-Trace | 1332763633 reader2.news.tin.it 1385 87.7.88.3:4739 |
| X-Complaints-To | Please send abuse reports to abuse@retail.telecomitalia.it |
| Xref | csiph.com comp.lang.python:22179 |
Show key headers only | View raw
On 3/26/2012 13:45, redstone-cold@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 latter a string. Kiuhnm
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is there any difference between print 3 and print '3' in Python ? redstone-cold@163.com - 2012-03-26 04:45 -0700
Re: Is there any difference between print 3 and print '3' in Python ? Chris Angelico <rosuav@gmail.com> - 2012-03-26 23:01 +1100
Re: Is there any difference between print 3 and print '3' in Python ? Kiuhnm <kiuhnm03.4t.yahoo.it> - 2012-03-26 14:07 +0200
Re: Is there any difference between print 3 and print '3' in Python ? Robert Kern <robert.kern@gmail.com> - 2012-03-26 13:10 +0100
Re: Is there any difference between print 3 and print '3' in Python ? Dave Angel <d@davea.name> - 2012-03-26 08:11 -0400
Re: Is there any difference between print 3 and print '3' in Python ? redstone-cold@163.com - 2012-03-26 07:28 -0700
Re: Is there any difference between print 3 and print '3' in Python ? Stefan Behnel <stefan_ml@behnel.de> - 2012-03-26 17:03 +0200
Re: Is there any difference between print 3 and print '3' in Python ? redstone-cold@163.com - 2012-03-26 07:28 -0700
Re: Is there any difference between print 3 and print '3' in Python ? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-03-27 03:43 +0000
Re: Is there any difference between print 3 and print '3' in Python ? rusi <rustompmody@gmail.com> - 2012-03-26 22:00 -0700
Re: Is there any difference between print 3 and print '3' in Python ? Terry Reedy <tjreedy@udel.edu> - 2012-03-26 11:45 -0400
Re: Is there any difference between print 3 and print '3' in Python ? "J. Cliff Dyer" <jcd@sdf.lonestar.org> - 2012-03-26 13:06 -0400
Re: Is there any difference between print 3 and print '3' in Python ? Peter Otten <__peter__@web.de> - 2012-03-26 19:20 +0200
csiph-web