pickle laod code example
Example 1: pickle dump
import pickle
with open('Fruits.obj', 'wb') as fp:
pickle.dump(banana, fp)
Example 2: pickle load pickle file
pickle_in = open("dict.pickle","rb")
example_dict = pickle.load(pickle_in)
import pickle
with open('Fruits.obj', 'wb') as fp:
pickle.dump(banana, fp)
pickle_in = open("dict.pickle","rb")
example_dict = pickle.load(pickle_in)