如何打开.npz文件 [英] How to open a .npz-File
本文介绍了如何打开.npz文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
首先,我想说,我是编程和Python的新手.
first I want to say, that I`m completly new in Programming and Python.
有人给我发送了一个.npz文件. 有没有人可以解释我如何打开该文件. 还是我必须编写哪些代码. 我已经使用了很长时间,但是我只是不知道如何打开它.
Someone send me a .npz file. Is there anyone that could explain me how to open that file. Or which code I have to write. I already googeld quite a long time, but I just dont understand how to open it.
谢谢.
推荐答案
在python3中使用它:
use this in python3:
from numpy import load
data = load('out.npz')
lst = data.files
for item in lst:
print(item)
print(data[item])
这篇关于如何打开.npz文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文