在python/142这个数据的declaration的函数头下面有一个莫名其妙的双引号def sum_squares(lst): " result =[] for i in range(len(lst)): if i %3 == 0: result.append(lst[i]**2) elif i % 4 == 0 and i%3 != 0: result.append(lst[i]**3) else: result.append(lst[i]) return sum(result)
· Sign up or log in to comment