首页
编程
java
php
前端
首页
编程
java
php
前端
想请问一下这个是啥功能呀,,当输入值为10时,程序输出结果是什么呢
def f(n):
return 1 if n<=2 else f(n-1)+f(n-2)
print(f(int(input())))
55
点击展开全文