我正在尝试在python 3.7中保存一个字符串。在h5py文档页面中,所有内容都与此类数据类型有关:
dt = h5py.string_dtype(encoding='ascii')
但是,当我尝试它时,出现以下错误。
module 'h5py' has no attribute 'string_dtype'
将字符串保存为hdf5格式的最简单方法是什么。
谢谢
conda update -c conda-forge h5py