[Python] numpy.Matrix

import numpy as np
np.matrix('1, 2; 3, 4')
#1, 2
#3, 4

np.matrix([[1,2],[3,4]])
#1, 2
#3, 4

 

原文地址:https://www.cnblogs.com/KennyRom/p/6607589.html