#简单求和
def num_sum(arr):
result =0
for i in arr:
result =result+i
return result
print(num_sum([1,2,3,4])) 10
#简单求和
def num_sum(arr):
result =0
for i in arr:
result =result+i
return result
print(num_sum([1,2,3,4])) 10