for i in range(len(L)): 请问哪里错了呢?
def square_of_sum(L): sum = 0 for i in range(len(L)): sum += L(i)*L(i) return sum print (square_of_sum([1, 2, 3, 4, 5])) 请问哪里错了呢?
def square_of_sum(L): sum = 0 for i in range(len(L)): sum += L(i)*L(i) return sum print (square_of_sum([1, 2, 3, 4, 5])) 请问哪里错了呢?
2017-01-15
举报