Python 中变量的保存和读取
摘要:
1. 保存为matlab可读的.mat文件 from scipy.io import savemat savemat('ab.mat', {'a': a, 'b': b}) 2. 使用numpy保存为.npy或者.npz文件 import numpy as np np.save('a', a = a 阅读全文
posted @ 2020-08-14 16:48 whale_kevin 阅读(2943) 评论(0) 推荐(0)
浙公网安备 33010602011771号