这段代码中的L list在哪里被识别定义或者新建?
def square_of_sum(L):
sum=0
for x in L:
sum=sum+x*x
return sum
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
_______________________________________
这段代码中的L list在哪里被识别定义或者新建?
def square_of_sum(L):
sum=0
for x in L:
sum=sum+x*x
return sum
print square_of_sum([1, 2, 3, 4, 5])
print square_of_sum([-5, 0, 5, 15, 25])
_______________________________________
这段代码中的L list在哪里被识别定义或者新建?
2016-12-12
举报