s=[[4,2],[3,2],[3,1]] A =mat(s) A matrix([[4, 2], [3, 2], [3, 1]]) ss = A.getA() ss array([[4, 2], [3, 2], [3, 1]])
A.tolist()也可转换成序列,当A为一维数组时,用A.tolist[0]