python dict的保存方法 [dict_saving]
numpy保存
if os.path.exists('map_mcdict.npy'):
map_dict=np.load('map_mcdict.npy',allow_pickle=True).item()
else:
map_dict=dict()
==== operation start ====
==== operation end ====
np.save('map_mcdict.npy',map_dict)

浙公网安备 33010602011771号