Answers for "share pickle file as api"

3

pickle dump

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

pickle load

with open('filename', 'rb') as f:
    x = pickle.load(f)
Posted by: Guest on December-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language