相关疑难解决方法(0)

在python3中使用h5py发现密钥

python2.7,我可以分析一个hdf5文件密钥使用

$ python
>>> import h5py
>>> f = h5py.File('example.h5', 'r')
>>> f.keys()
[u'some_key']
Run Code Online (Sandbox Code Playgroud)

然而,在python3.4,我得到了一些不同的东西:

$ python3 -q
>>> import h5py
>>> f = h5py.File('example.h5', 'r')
>>> f.keys()
KeysViewWithLock(<HDF5 file "example.h5" (mode r)>)
Run Code Online (Sandbox Code Playgroud)

是什么KeysViewWithLock,以及如何在Python3中检查我的HDF5密钥?

hdf5 python-2.7 python-3.4

17
推荐指数
1
解决办法
2万
查看次数

标签 统计

hdf5 ×1

python-2.7 ×1

python-3.4 ×1