[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

 

posted @ 2017-03-23 21:56  KennyRom  阅读(209)  评论(0编辑  收藏  举报