Does return keyword in Python saves the value in memory for a function with an specific parameter?

后端 未结 0 929
太阳男子
太阳男子 2021-01-16 03:00

I\'m learning about recursive functions, and I have a doubt, let\'s say:

def fibonacci(n):
if n == 0 or n == 1:
    return 1

return fibonacci(n-1) + fibonacc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题