Python dictionary setdefault() method used as a return value of a recursive function

前端 未结 0 1415
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-06 06:38

Say you want to get the nth Fibonacci Number. Then, one possibility is to use the recursive function

def Fib(n, d):
    """Assumes n is an int          


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