Getting “RecursionError: maximum recursion depth exceeded in comparison” for a non recursive function

后端 未结 0 391
我寻月下人不归
我寻月下人不归 2021-01-23 15:32

For the following function:

def my_func(x, y):

    if y < 0:
        q = my_func(x, (y*-1))
    else:
        q = my_func(x,y)
        
    return q(x, y)


p         


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