运行如下代码,请输出运算结果?( )
def fun(lst):
if len(lst) == 0:
return 0
return lst[0] + fun(lst[1:])
x = [1,2,3,4,5]
print(fun(x))
9
6
10
15