Article View: pl.comp.lang.python
Article #27650Re: "print" do zmiennej string
From: Bart Ogryczak
Date: Thu, 26 Aug 2010 11:24
Date: Thu, 26 Aug 2010 11:24
20 lines
1896 bytes
1896 bytes
On Aug 24, 2:19 pm, Jacek Czerwinski <x...@y.z.pl> wrote: > W dniu 2010-08-24 13:49, Mariusz Kruk pisze: > > > epsilon$ while read LINE; do echo \>"$LINE"; done< "max" > >> # poczatek > >> str1 = "test str" > >> print(str1) > >> str2 = print(str1) > >> print(str2) > >> # koniec > > >> Dlaczego funkcja print nie zwraca wartości ? > > > Bo tak ma. > > Sporo juz nie obcowalem z formalizmem Pythona, czy 'print' to na pewno > funkcja? Od 3.0 funkcja, wcześniej statement. http://www.python.org/dev/peps/pep-3105/
Technical Details
Message-ID:
<4e3a8480-a8cd-46a9-a42f-382d9c8f355c@q22g2000yqm.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!news2.arglkargh.de!diablo1.news.osn.de!news.osn.de!diablo2.news.osn.de!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.com!q22g2000yqm.googlegroups.com!not-for-mailReferences:
<i509he$aas$1@portraits.wsisiz.edu.pl> <slrni77cev.na5.Mariusz.Kruk@epsilon.rdc.pl> <i50dcj$8r4$2@news.onet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!feeder.erje.net!news2.arglkargh.de!diablo1.news.osn.de!news.osn.de!diablo2.news.osn.de!feeder2-2.proxad.net!proxad.net!feeder1-2.proxad.net!74.125.46.134.MISMATCH!postnews.google.com!q22g2000yqm.googlegroups.com!not-for-mail From: Bart Ogryczak <b.ogryczak@gmail.com> Newsgroups: pl.comp.lang.python Subject: Re: "print" do zmiennej string Date: Thu, 26 Aug 2010 04:24:23 -0700 (PDT) Organization: http://groups.google.com Lines: 20 Message-ID: <4e3a8480-a8cd-46a9-a42f-382d9c8f355c@q22g2000yqm.googlegroups.com> References: <i509he$aas$1@portraits.wsisiz.edu.pl> <slrni77cev.na5.Mariusz.Kruk@epsilon.rdc.pl> <i50dcj$8r4$2@news.onet.pl> NNTP-Posting-Host: 94.100.112.225 Mime-Version: 1.0 X-Trace: posting.google.com 1282821863 5859 127.0.0.1 (26 Aug 2010 11:24:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 26 Aug 2010 11:24:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q22g2000yqm.googlegroups.com; posting-host=94.100.112.225; posting-account=1kG_1AoAAADLEA3eucGvO2J-Uo4aPCW_ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.41 Safari/534.3,gzip(gfe) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit