pickleを使って変数をそのまま保存する[Python]

import pickle
import numpy as np
arr = np.zeros(100)
with open("arr.pickle", "wb") as f:
pickle.dump(arr, f)
Pocket