下边的代码是6阶蛇形矩阵的构造和输出
N = 6 counter=[] for a in range(N): counter.append(N-a) counter.append(N-a) del counter[0] counter[0]=counter[0]-
下边的代码是6阶蛇形矩阵的构造和输出
N = 6 counter=[] for a in range(N): counter.append(N-a) counter.append(N-a) del counter[0] counter[0]=counter[0]-