我将许多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
Tags:
另见帖子How to know HDF5 dataset name in python
相关问题 更多 >
编程相关推荐