pd_errors_wrt_output_neuron_total_net_input = [0] * len(self.output_layer.neurons)
这个语句看的不是很懂,用 [0] 乘以一个普通的数字,得到的结果是啥?
原文地址:https://blog.csdn.net/accumulate_zhang/article/details/5332416
我不明白这样做的意义
生成输出层的神经元,并且全部初始化为0,用了一个简单的语法技巧。
[0] * 4 = [0,0,0,0],学过python的人都知道,会查百度的人也都知道,会自主思考的人也都知道