ktl014
7/28/2017 - 10:20 PM

How to save variable to external file like Matlab From https://stackoverflow.com/questions/31915120/python-save-variable-to-file-like-save-i

try:
    import cPickle as pickle  # Improve speed
except ValueError:
    import pickle

file_temp = open('temp', 'w')
pickle.dump(scenes, file_temp)
file_temp.close()