Answers for "what does in mean to pickle an object in code"

5

pickle save

import pickle

pickle.dump( favorite_color, open( "save.p", "wb" ) )
favorite_color = pickle.load( open( "save.p", "rb" ) )
Posted by: Guest on October-05-2020
3

pickle dump

import pickle
with open('Fruits.obj', 'wb') as fp:
	pickle.dump(banana, fp)
Posted by: Guest on January-13-2021

Python Answers by Framework

Browse Popular Code Answers by Language