python将list转为matrix

来源:互联网 发布:linux运维之道 百度云 编辑:程序博客网 时间:2024/05/22 14:44
import numpy as nptmp = [[1,2,3],[4,5,6],[7,8,9]];np.matrix(tmp)
0 0
原创粉丝点击