为什么return的退格位置不一样,生成的结果也不一样呢?
为什么return的退格位置不一样,生成的结果也不一样呢?
def square_of_sum(L):
sum = 0
for x in L:
sum = sum + x * x
return sum
def square_of_sum(L):
sum = 0
for x in L:
sum = sum + x * x
return sum
为什么return的退格位置不一样,生成的结果也不一样呢?
def square_of_sum(L):
sum = 0
for x in L:
sum = sum + x * x
return sum
def square_of_sum(L):
sum = 0
for x in L:
sum = sum + x * x
return sum
2015-02-27
举报