python array保存为csv文件,并加载

import numpy 

numpy.savetxt('train_x.csv', train_x, delimiter = ',')

train_x.csv = numpy.loadtxt(open("train_x.csv","rb"),delimiter=",",skiprows=0)

你可能感兴趣的:(python,1024程序员节,python,开发语言)