官网文档 Special types — h5py 3.5.0 documentation
1、导包
import h5py
2、打开文件
file_open = h5py.File(filePathMame, 'r+')
3、创建group
file_open.create_group('/test/one')
4、删除group
del file_open['/test/one']
5、创建dataset
file_open.create_dataset('test',[1,2,3,4])
6、删除dataset
del file_open['test']
7、创建attribute
test.attrs['test']='1234'
8、删除attribute
del test.attrs['test']
9、关闭文件
file_open.close()