сетевой способ печати 2 -й массив
import numpy as np
A = [['A', 'B'], ['C', 'D']]
print(np.matrix(A))
Nikhil Reddy
import numpy as np
A = [['A', 'B'], ['C', 'D']]
print(np.matrix(A))