当前位置:网站首页>.h5文件忘记数据库名字,使用h5py打印
.h5文件忘记数据库名字,使用h5py打印
2022-06-23 06:06:00 【NuerNuer】
我们读取.h5文件时,一般:
import h5py
path = 'xxx.h5'
with h5py.File(path, 'r') as h5_file:
data = h5_file.get('数据库名称')[...]
但有的时候,由于种种原因,我们会忘记数据库的名称,会导致读取失败。
解决办法:
for key in h5_file.keys():
print(h5_file[key].name)这样就会打印出 数据库 的名称,我们就可以正常使用了
边栏推荐
- 【项目实训】线形组件的细节
- DQL、DML、DDL、DCL的概念与区别
- Idea installing the cloudtoolkit plug-in
- Intentional shared lock, intentional exclusive lock and deadlock of MySQL
- Haas506 2.0 development tutorial -sntp (only versions above 2.2 are supported)
- [STL] summary of pair usage
- Children's programming for comprehensively cultivating students' mental thinking
- Open source oauth2 framework for SSO single sign on
- English grammar_ Adverb - ever / once
- Detailed explanation of callback function
猜你喜欢

MySQL Redo log Redo log

JS to create an array (all elements are objects)

cmder

Why does TCP protocol shake hands three times instead of two?

QT designer cannot modify the window size, and cannot change the size by dragging the window with the mouse

xml dtd 记录

【项目实训】线形箭头的变化
![[project training] change of linear arrow](/img/a4/7554522c13684d7590d247f28a6965.png)
[project training] change of linear arrow

【系统】右键桌面图标,转圈后,资源管理器就崩溃,桌面就重新刷新

Summary of qvariant use in QT
随机推荐
【毕业季·进击的技术er】自己的选择,跪着也要走
【项目实训】线形组件的细节
【项目实训10】箭头的绘制
【STL】关联容器之map用法总结
core.js是什么---kalrry
idea安装 CloudToolkit 插件
Miscellaneous things
VS2013 FFMPEG环境配置及常见错误处理
2121. 相同元素的间隔之和-哈希表法
【畢業季·進擊的技術er】自己的選擇,跪著也要走
图解三次握手四次挥手,小白都能看懂
XML schema record
Too much if logic in JS, common optimization
system 权限程序不能访问sd卡问题
/Bin/sh no such file or directory problem
Understand how learning JSX works
XShell7 下载
[project training] change of linear arrow
746. climbing stairs with minimum cost - Dynamic Planning
Media industry under the epidemic situation, small program ecology driven digital transformation exploration