代码在这里
return self.activator(reduce(lambda a, b: a+b, map(lambda x, w: x*w, zip(input_vec, self.weights)), 0.0) + self.bias)
python2.7-version代码就像 lambda (x, w)
lambda (x, w)
但是现在删除了Tuple参数解压缩,所以我不知道如何找到它:(
python lambda tuples python-3.x iterable-unpacking
iterable-unpacking ×1
lambda ×1
python ×1
python-3.x ×1
tuples ×1