numpy.load()

numpy.load

numpy.load(file, mmap_mode=None, allow_pickle=True, fix_imports=True, encoding='ASCII') [source]

Load arrays or pickled objects from .npy, .npz or pickled files.

Parameters:

file : file-like object, string, or pathlib.Path

The file to read. File-like objects must support the seek() and read() methods. Pickled files require that the file-like object support the readline() method as well.

登录查看完整内容