执行以下代码:
def sum_n(n):
if n==1:
return 2
t = sum_n(n - 2)
return n + t
result = sum_n(5)
print(result)
程序输出的结果为:10
复制链接后可在微信、QQ、小红书等平台粘贴分享;答案与解析在题目页。