dictionary = {'hello': 'world'} np.save('my_file.npy', dictionary) read_dictionary = np.load('my_file.npy',allow_pickle = True).item() print(read_dictionary['hello']) print("ok")
https://zhuanlan.zhihu.com/p/258140196