工具 numpy工具包 import numpy as np; 读矩阵 matrix = np.loadtxt(open("matrix.csv","rb"),delimiter=",",skiprows=0) 写矩阵 np.savetxt