numpy.save()

numpy.save

numpy.save(file, arr, allow_pickle=True, fix_imports=True) [source]

Save an array to a binary file in NumPy .npy format.

Parameters:

file : file, str, or pathlib.Path

File or filename to which the data is saved. If file is a file-object, then the filename is unchanged. If file is a string or Path, a .npy extension will be appended to the file name if it does not already have one.

allow_pickle : bool, optional登录查看完整内容