vul*_*nrs 5 python arrays dictionary numpy
如何在 python 中将两个 numpy 数组添加到字典中?
a = [[1]
[3]]
b = [array([[[ 41., 179.],
[ 451., 254.],
[ 449., 10.],
[ 53., 256.]]], dtype=float32), array([[[ 181., 313.],
[ 27., 24.],
[ 113., 192.],
[ 08., 20.]]], dtype=float32)]
Run Code Online (Sandbox Code Playgroud)
我希望将 a 和 b 显示为
c = {1: array([[ 41., 179.],
[ 451., 254.],
[ 449., 10.],
[ 53., 256.]], dtype=float32),
3: array([[ 181., 313.],
[ 27., 24.],
[ 113., 192.],
[ 08., 20.]], dtype=float32)}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
16478 次 |
| 最近记录: |