Объяснение:
N = 14
Matrix2D = [ ]
for X in range(0,N):
Matrix2D.append ( [ ] )
for Y in range(0, N):
Matrix2D[ X ].append( 0 )
for X in range(0, N):
Matrix2D[ X ] [Y ] = (round( (X+Y)+N ) % N) + 1
print( Matrix2D )
Объяснение:
N = 14
Matrix2D = [ ]
for X in range(0,N):
Matrix2D.append ( [ ] )
for Y in range(0, N):
Matrix2D[ X ].append( 0 )
for X in range(0, N):
for Y in range(0, N):
Matrix2D[ X ] [Y ] = (round( (X+Y)+N ) % N) + 1
print( Matrix2D )