Pickle Load and Save

import _pickle as pickle def save_pickle(file_path, obj): with open(file_path, 'wb') as file: pickle.dump(obj, file, -1) def load_pickle(file_path): return pickle.load(open(file_path, 'rb'))

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.