保存numpy数组时tmpfile有什么意义?

时间:2019-07-03 01:28:36

标签: python numpy

我正在Numpy文档中查找如何保存数组,前提是:

from tempfile import TemporaryFile
outfile = TemporaryFile()
np.save(outfile, array)

我尝试在不使用tempfile的情况下执行此操作,并且它起作用了,所以,我想知道这有什么意义?

0 个答案:

没有答案
相关问题