<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《Python程序员的进化》的评论</title>
	<atom:link href="http://coolshell.cn/articles/2082.html/feed" rel="self" type="application/rss+xml" />
	<link>http://coolshell.cn/articles/2082.html</link>
	<description>享受编程和技术所带来的快乐 - http://coolshell.cn</description>
	<lastBuildDate>Mon, 21 May 2012 17:16:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>作者：runforever</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-108309</link>
		<dc:creator>runforever</dc:creator>
		<pubDate>Fri, 09 Dec 2011 07:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-108309</guid>
		<description>fact = lambda n: reduce(lambda a, b: a*b, xrange(1, n+1))
print fact(6)</description>
		<content:encoded><![CDATA[<p>fact = lambda n: reduce(lambda a, b: a*b, xrange(1, n+1))<br />
print fact(6)</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：shiny</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-32703</link>
		<dc:creator>shiny</dc:creator>
		<pubDate>Sun, 27 Feb 2011 05:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-32703</guid>
		<description>我是学过Pascal，的确哈~感觉非常一样，不明白与C有什么区别啊~</description>
		<content:encoded><![CDATA[<p>我是学过Pascal，的确哈~感觉非常一样，不明白与C有什么区别啊~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：missingplant</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-12366</link>
		<dc:creator>missingplant</dc:creator>
		<pubDate>Fri, 29 Oct 2010 19:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-12366</guid>
		<description>第一年学完SICP的新手路过啊~~
很喜欢这个网站 。</description>
		<content:encoded><![CDATA[<p>第一年学完SICP的新手路过啊~~<br />
很喜欢这个网站 。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：jruv</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-8912</link>
		<dc:creator>jruv</dc:creator>
		<pubDate>Thu, 12 Aug 2010 08:52:24 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-8912</guid>
		<description>f = lambda x:x*f(x-1) if x&gt;1 else 1
print f(6)</description>
		<content:encoded><![CDATA[<p>f = lambda x:x*f(x-1) if x&gt;1 else 1<br />
print f(6)</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Leyond</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-8910</link>
		<dc:creator>Leyond</dc:creator>
		<pubDate>Thu, 12 Aug 2010 08:36:21 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-8910</guid>
		<description>哇unix可以那样写的啊。</description>
		<content:encoded><![CDATA[<p>哇unix可以那样写的啊。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Greenmoon55</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-5497</link>
		<dc:creator>Greenmoon55</dc:creator>
		<pubDate>Tue, 16 Mar 2010 16:24:48 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-5497</guid>
		<description>第一年的刚学完C语言的新手~~</description>
		<content:encoded><![CDATA[<p>第一年的刚学完C语言的新手~~</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：My Road! &#187; Python程序员的进化</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-5328</link>
		<dc:creator>My Road! &#187; Python程序员的进化</dc:creator>
		<pubDate>Fri, 05 Mar 2010 04:35:42 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-5328</guid>
		<description>[...] http://coolshell.cn/?p=2082 [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://coolshell.cn/?p=2082" rel="nofollow">http://coolshell.cn/?p=2082</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：路人甲</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-5308</link>
		<dc:creator>路人甲</dc:creator>
		<pubDate>Wed, 03 Mar 2010 07:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-5308</guid>
		<description>干.
我成了爱偷懒的程序员了..</description>
		<content:encoded><![CDATA[<p>干.<br />
我成了爱偷懒的程序员了..</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：依云</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-5255</link>
		<dc:creator>依云</dc:creator>
		<pubDate>Sat, 27 Feb 2010 05:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-5255</guid>
		<description>我曾经也像第一年刚学完Python的新手那样写过。现在的话，第一反应就是打开 Python 文档搜索 factorial</description>
		<content:encoded><![CDATA[<p>我曾经也像第一年刚学完Python的新手那样写过。现在的话，第一反应就是打开 Python 文档搜索 factorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：道法自然</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-5172</link>
		<dc:creator>道法自然</dc:creator>
		<pubDate>Mon, 22 Feb 2010 07:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-5172</guid>
		<description>我最喜欢“Python 专家”的写法。阅读本文之前让我写，我写的会和“第一年的刚学完Pascal的新手”差不多。我是Python新手，本文对我了解Python很有帮助，谢谢！</description>
		<content:encoded><![CDATA[<p>我最喜欢“Python 专家”的写法。阅读本文之前让我写，我写的会和“第一年的刚学完Pascal的新手”差不多。我是Python新手，本文对我了解Python很有帮助，谢谢！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：andersc</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-4984</link>
		<dc:creator>andersc</dc:creator>
		<pubDate>Tue, 09 Feb 2010 06:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-4984</guid>
		<description>Windows程序员总是被调侃。。。</description>
		<content:encoded><![CDATA[<p>Windows程序员总是被调侃。。。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：thiswind</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-4982</link>
		<dc:creator>thiswind</dc:creator>
		<pubDate>Tue, 09 Feb 2010 05:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-4982</guid>
		<description>哦，不巧我今天刚好要写一个阶乘。
楼主的阶乘看似都是用的递归，开销太大，阶乘一般都是用迭代来计算的。
来，我也来写一个：

def fact(n) :
    return reduce(lambda x, y: x*y, range(1, (n or 1) +1))</description>
		<content:encoded><![CDATA[<p>哦，不巧我今天刚好要写一个阶乘。<br />
楼主的阶乘看似都是用的递归，开销太大，阶乘一般都是用迭代来计算的。<br />
来，我也来写一个：</p>
<p>def fact(n) :<br />
    return reduce(lambda x, y: x*y, range(1, (n or 1) +1))</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Javer</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-4945</link>
		<dc:creator>Javer</dc:creator>
		<pubDate>Sun, 07 Feb 2010 05:23:10 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-4945</guid>
		<description>1	f = lambda x: x and x * f(x - 1) or 1
我就是这样写的</description>
		<content:encoded><![CDATA[<p>1	f = lambda x: x and x * f(x &#8211; 1) or 1<br />
我就是这样写的</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：calio</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-4911</link>
		<dc:creator>calio</dc:creator>
		<pubDate>Fri, 05 Feb 2010 01:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-4911</guid>
		<description>windows程序员那个绝了</description>
		<content:encoded><![CDATA[<p>windows程序员那个绝了</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：dluser</title>
		<link>http://coolshell.cn/articles/2082.html/comment-page-1#comment-4876</link>
		<dc:creator>dluser</dc:creator>
		<pubDate>Wed, 03 Feb 2010 04:41:12 +0000</pubDate>
		<guid isPermaLink="false">http://coolshell.cn/?p=2082#comment-4876</guid>
		<description>很有趣。</description>
		<content:encoded><![CDATA[<p>很有趣。</p>
]]></content:encoded>
	</item>
</channel>
</rss>

