print 2d array in 2d shape python code example
Example 1: how to print a matrix in python
import numpy as np
print(np.matrix(A))
Example 2: python print 2d array as table
for row in A:
for val in row:
print '{:4}'.format(val),
print