【发布时间】:2023-03-22 22:54:01
【问题描述】:
如果我这样做
import numpy as np
h = [1,2,3]
np.save("h.npy",h)
h = np.load("h.npy")
print(type(h))
结果是
<class 'numpy.ndarray'>
总是这样吗? np.savez() 也一样吗?在online documentation 中,它只是说h 应该是类似数组的。
【问题讨论】:
标签: python arrays list numpy save