判断题

下面Python代码执行后输出是15。(    )

def func(n):
	if n <= 0:
		return 0
	n -= 1
	return n + func(n)
print(func(5))
A 正确
B 错误
赣ICP备20007335号-2