如下代码因为递归的边界条件设置错误,产生了无限递归程序报错。( )
def fun(n):
if n > 10:
return 0
else:
return n + fun(n-1)
print(fun(10))