python 中npz文件的读取

import numpy as np 
a = np.load(open('spice_sg_dict2.npz','rb'), encoding='bytes')
print(a)         #
print(type(a))   #

print(a.files)    # ['spice_dict']
print(a['spice_dict'])

参考 https://blog.csdn.net/AugustMe/article/details/88095362

你可能感兴趣的:(python 中npz文件的读取)