python保存数组文件到本地
python保存数组文件到本地
从本地数组载入文件
import numpy as np
#保存数组文件到本地
np.save('data_x.npy',data_x)
np.save('label_x.npy',label_x)
#从本地载入文件
data_x = np.load('data_x.npy')
label_x = np.load('label_x.npy')
python保存数组文件到本地
从本地数组载入文件
import numpy as np
#保存数组文件到本地
np.save('data_x.npy',data_x)
np.save('label_x.npy',label_x)
#从本地载入文件
data_x = np.load('data_x.npy')
label_x = np.load('label_x.npy')