📌  相关文章
📜  如何在python代码示例中加载h5文件

📅  最后修改于: 2022-03-11 14:46:23.085000             🧑  作者: Mango

代码示例1
import h5py
filename = "file.hdf5"

with h5py.File(filename, "r") as f:
    # List all groups
    print("Keys: %s" % f.keys())
    a_group_key = list(f.keys())[0]

    # Get the data
    data = list(f[a_group_key])