📜  sequenza di fibonacci python 代码示例

📅  最后修改于: 2022-03-11 14:46:51.528000             🧑  作者: Mango

代码示例1
def fibonacci(n):
    if n<2:
        return n
    return fibonacci(n-2)+fibonacci(n-1)
print(fibonacci(i))