def fibonacci_seq(n):
if n == 1 or n == 2:
return 1
else:
return fibonacci_seq(n - 1) + fibonacci_seq
python#斐波那契数列
最新推荐文章于 2023-08-01 15:31:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
def fibonacci_seq(n):
if n == 1 or n == 2:
return 1
else:
return fibonacci_seq(n - 1) + fibonacci_seq