判断题

以下代码的空间复杂度是 O(1) 。(    )

def sum_elements(arr):
	total = 0
	for num in arr:
		total += num
return total
A 正确
B 错误
赣ICP备20007335号-2