📜  从 0-d numpy 数组中恢复字典 - Python 代码示例

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

代码示例1
>>> import numpy as np
>>> np.save('/tmp/data.npy',{'a':'Hi Mom!'})
>>> x=np.load('/tmp/data.npy')
>>> x.item()
{'a': 'Hi Mom!'}