Skip to content

Instantly share code, notes, and snippets.

@spdin
Created June 24, 2021 00:21
Show Gist options
  • Save spdin/8f48e651104ebb5add81b654cd9e32f4 to your computer and use it in GitHub Desktop.
Save spdin/8f48e651104ebb5add81b654cd9e32f4 to your computer and use it in GitHub Desktop.
save and load pickle
import pickle
# Saving the objects:
with open('test1.pkl', 'wb') as f: # Python 3: open(..., 'wb')
pickle.dump([table_bbox, row_bbox, column_bbox], f)
# Getting back the objects:
with open('test1.pkl', 'rb') as f: # Python 3: open(..., 'rb')
table_bbox, row_bbox, column_bbox = pickle.load(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment