利用pandas库, 将numpy的array数据保存成csv格式的文件: import pandas as pd import numpy as np data = pd.read_csv('C:\\abc\\a.csv', header=None) col1 = data.values[:,0] col2 = data.values[:,1]-0.9 for i in range(0, len(col2)): col2[i] = float("%.2f" % col2[i]) co
1. 保存list import numpy as np a = [1,2,3,4,5] np.save("number.npy", a) k = np.load("number.npy") 2. 保存map import json data = {} data["a"] = 1 data["b"] = 2 # Writing JSON data with open('data.json', 'w') as f: json.d