PyCodersCN/PyCodersCN — Issue #3: "Python 的闭包和装饰器"中第一个例子中的range
Author: wwq0327
Created: 2012-03-07 13:04:48+00:00
State: open

>>> #An implementation of a repeat function
>>> def repeat(fn, times):
… for i in rannge(times):
… fn()

"rannge"应该为"range"吧。