摘要: 1 '''a,b=0,1 2 x=int(input('请指定需要多少项:')) 3 while x>0: 4 print(b) 5 a,b=b,a+b 6 x-=1''' 7 #递归 8 def fibo(n): 9 if n<=1: 10 return 1 11 else: 12 return fibo... 阅读全文
posted @ 2018-07-05 20:54 三木三水 阅读(199) 评论(0) 推荐(0)