嗨,我是 python 的新用户,想导入保存的 npy 数组。尝试加载 npy 数组时,我收到以下错误消息。提前致谢!
import numpy as np
A = np.load('C:/Final Runs/lineTank.npy')
我收到这些错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\numpy\lib\npyio.py", line 384, in load
"Failed to interpret file %s as a pickle" % repr(file))
IOError: Failed to interpret file 'C:/Final Runs/lineTank.npy' as a pickle