赞
踩
import numpy as np array1 = ['a','b','c'] array2 = [4,5,6] array3 = [10,11,12] matrix = np.mat([array1,array2,array3]) print('多个列表转换成矩阵 \n',matrix) matrix1 = np.empty((3,3))