import numpy
from numpy.lib.npyio import NpzFile

numpy.savez_compressed('nn.npz', vectors=[0.11, 0.22])


data: NpzFile = numpy.load('nn.npz')

print(list(data.keys()))

v: numpy.ndarray = data['vectors']

print(v)
print(type(v))

universe_king
3.4k 声望680 粉丝