【发布时间】:2018-01-23 03:21:51
【问题描述】:
我将一些 numpy 数组保存到一个 h5py 文件中,不同的名称对应于不同的数据集。假设我不知道那些数据集名称,如何在读取 h5py 文件后访问保存的数据。例如:
f = h5py.file('filename','w')
f.create_dataset('file1',data=data1)
....
F = h5py.file('filename','r')
#next how to read out all the datasets without knowing their names in a prior
【问题讨论】:
标签: python