Pyhton numpy保存和打开.npz文件方法详解 - joingreat/bugList GitHub Wiki
https://blog.csdn.net/wangkaidehao/article/details/103434442
import numpy as np
arr0 = np.array([0,1,2,3]) arr1 = np.array([4,5,6,7,8])
np.savez('hellofile.npz', a = arr0, b = arr1)
datas = np.load('hellofile.npz') print(datas.files) print(datas['a']) print(datas['b'])
['a', 'b'] [0 1 2 3] [4 5 6 7 8]