首页 > 编程知识 正文

h5和python哪个好就业,python处理excel文件

时间:2023-05-04 13:08:48 阅读:130102 作者:2393

How do I see what variables,datasets,etc. a given .h5 file has in Python?

I can read the file by running this

import h5py

f=H5py.file(filename,' r ' ) )。

howcaninowseewhichvariablesmy.H5 file have?

running f.keys (outputsthenon-informative

KeysView () )

inmatlabisimplycallh5disp (filename ) butwouldliketoknowhodoitinpython

Did you try?

打印(列表(f.keys ) )

thatshouldgiveyouallthegroupinsideyourhdf5file.youcandothesameforthedatasetsifisagroup。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。