这篇论文是用TensorFlow写的代码,以下是理解内容记录:
>>> layers_e=[] >>> layers_e [] >>> X=[1,2,3,4,5] >>> layers_e.append(X) >>> layers_e [[1, 2, 3, 4, 5]] >>> layers_e[-1] [1, 2, 3, 4, 5]
为了更好的理解,进行下面的代码实现:
>>> layers_e = [1,2,3,4,5] >>> layers_e[0] 1 >>> layers_e[1] 2 >>> layers_e[2] 3 >>> layers_e[3] 4 >>> layers_e[4] 5 >>> layers_e[-1] 5 >>> layers_e[-2] 4 >>> layers_e[-3] 3 >>> layers_e[-4] 2 >>> layers_e[-5] 1