Answers for "pickle5.dump"

3

pickle dump

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

pickle.dump python

import pickle
# dump : put the data of the object in a file
pickle.dump(obj, open(file_path, "wb"))
# dumps : return the object in bytes
data = pickle.dump(obj)
Posted by: Guest on May-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language