运行如下代码,请输出运算结果?( )
def f(lst): if len(lst) == 0: return 0 return lst[0] + f(lst[1:]) a= [1,2,3,4] print(f(a))
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。