h5py文档:http://docs.h5py.org/en/latest/high/file.html#
安装h5py,Pre-built installation (recommended)
pip install h5py
了解:An HDF5 file is a container for two kinds of objects: datasets, which are array-like collections of data, and groups, which are folder-like containers that hold datasets and other groups.
Groups work like dictionaries, and datasets work like NumPy arrays
安装完成后,python
命令进入python交互式环境
import h5py
h5py.run_tests()
来测试h5py是否安装成功
新建一个h5py文件:
The very first thing you’ll need to do is create a new file:
>>> import h5py
>>> import numpy as np
>>>
>>> f = h5py.File("mytestfile.hd