Jackiesteed

www.github.com/jackiesteed

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月16日

摘要: #Most of these code are picked from web, you can run them on python 2.4, enjoy it! # First N Fibonacci numbersprint map(lambda x,f=lambda x,f: int(x<=1) or (f(x-1,f)+f(x-2,f)): f(x,f),range(N))# Mandelbrot set(which can be either written in one line)print (lambda Ru,Ro,Iu,Io,IM,Sx,Sy:reduce(lambd 阅读全文
posted @ 2012-04-16 21:56 Jackiesteed 阅读(256) 评论(0) 推荐(0) 编辑