标签:mil def soft str range ros print turn after
#__author__:Administrator}
#a: 2017/11/
# def jie(n):
# if n==1:
# return 1
# return n*jie(n-1)
#
# print(jie(5))
#飞播那期数列:0,1,1,2,3,5,8,13,21
def fibo(n):
befo = 0
after = 1
for i in range(n-2):
sum = after+befo
befo = after
after = sum
return sum
print(fibo(5))
标签:mil def soft str range ros print turn after
原文地址:http://www.cnblogs.com/xuxu-learn-python/p/7845408.html