shaoheshaohe 发表于 2020-6-20 09:16:37

字典以numpy形式存储和读出

保存:import numpy as npnp.save('a.npy', a)
读入:a=np.load('a.npy')data=a.item()至此,data即为读出的字典

shaoheshaohe 发表于 2020-6-20 09:16:47

https://blog.csdn.net/zlrai5895/article/details/80009499?utm_medium=distribute.pc_relevant.none-task-blog-baidujs-1
页: [1]
查看完整版本: 字典以numpy形式存储和读出