Article View: pl.comp.lang.python
Article #127Re: ID3 z MP3
From: Adam Przybyla
Date: Mon, 02 Dec 2002 15:50
Date: Mon, 02 Dec 2002 15:50
24 lines
1492 bytes
1492 bytes
Wojtek Walczak <gminick@hacker.pl> wrote: > Dnia Mon, 02 Dec 2002 16:02:01 +0100, Pawel J Maczewski napisaล(a): >> I drugie pytanko, przy okazji: czy jest jakas konstrukcja odpowiadajaca >> perlowemu 'foreach'? > for dziala jak foreach > for i in [1,2,3]: > print i > i dostaniesz: > 1 > 2 > 3 ... jest tego wiecej: map(lambda x: x+1,[1,2,3]) czy to samo inaczej [x+1 for x in [1,2,3]] To samo co w pierwszym przykladzie wygladaloby tak: def p(x): print x x=map(p,[1,2,3]) lub x=[p(x) for x in [1,2,3]] Z powazaniem Adam Przybyla
Technical Details
Message-ID:
<asfvfq$f13$1@news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!fr.usenet-edu.net!usenet-edu.net!proxad.net!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mailReferences:
<asfsn7$sgh$1@news.tpi.pl> <slrnaunccs.82j.gminick@hannibal.localdomain>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!fr.usenet-edu.net!usenet-edu.net!proxad.net!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: Adam Przybyla <adam@gliwice.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: ID3 z MP3
Date: Mon, 2 Dec 2002 15:50:19 +0000 (UTC)
Organization: tp.internet - http://www.tpi.pl/
Lines: 24
Sender: Adam Przybyla <adam@castle.ertel.com.pl>
Message-ID: <asfvfq$f13$1@news.tpi.pl>
References: <asfsn7$sgh$1@news.tpi.pl> <slrnaunccs.82j.gminick@hannibal.localdomain>
NNTP-Posting-Host: castle.ertel.com.pl
Mime-Version: 1.0
X-Trace: news.tpi.pl 1038844219 15395 195.116.54.3 (2 Dec 2002 15:50:19 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 2 Dec 2002 15:50:19 +0000 (UTC)
User-Agent: tin/1.5.12-20020427 ("Sugar") (UNIX) (Linux/2.4.18 (i686))
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit