Message-ID: <4VeSlM$a4v@newsmth.net>
Subject: �矢��������lambda������
Date: Tue, 28 Aug 2007 02:13:59 +0000
From: love1y@newsmth.net-SPAM.no (小���)
Path: news.cnusenet.org!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-cn.bbs.comp.lang.python.mbox.zip!g2news2.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!194.134.4.77.MISMATCH!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.cn99.com!news.newsmth.net!NEWSMTH
Newsgroups: cn.bbs.comp.lang.python
Organization: 水木����
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Python/J/M.1188267238.10
Lines: 13
Xref: news.cnusenet.org cn.bbs.comp.lang.python:37806

�������拢�learning python�系摹�
x(2)为什么��执�校� lambda�牟�������么����去�模�

def func(  ):
    x = 4
    action = (lambda n: x ** n)          # x in enclosing def
    return action

x = func(  )
print x(2) # Prints 16
--

�� ��源:��水木���� http://newsmth.net��[FROM: 61.148.57.*]