Created
May 1, 2019 09:51
-
-
Save awesomebytes/1fc8dea8057d5d2ccc3eb258e6c18331 to your computer and use it in GitHub Desktop.
test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cPickle | |
import numpy as np | |
height = 100 | |
width = 100 | |
blank_image = np.zeros((height, width, 3), np.uint8) | |
my_python_data = { | |
'list_of_stuff': [1, 2, 3, 4, 5], | |
'complicated_object': blank_image | |
} | |
cPickle.dump(my_python_data, open("python_stuff.pickle", 'w')) | |
my_python_data = cPickle.load(open("python_stuff.pickle", 'r')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment