Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- # Save
- dictionary = {}
- np.save('my_file.npy', dictionary)
- # Load
- dictionary = np.load('my_file.npy').item()
- # print(dictionary['hello']) # displays "world"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement