摘要:
定义函数>>> def fib(n): # write Fibonacci series up to n... """Print a Fibonacci series up to n."""... a, b = 0, 1... while a < n:... print(a, end=' ')... a, b = b, a+b... print()...>>> # Now call the function we just defined:... fib(2000)0 1 1 阅读全文
posted @ 2012-12-28 00:17
fff8965
阅读(292)
评论(0)
推荐(0)

浙公网安备 33010602011771号