What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-27 19:15:07
pkl save multiple files
# Using a list, tuple, or dict is by far the most common way to do this: import pickle PIK = "pickle.dat" data = ["A", "b", "C", "d"] with open(PIK, "wb") as f: pickle.dump(data, f) wi... Add solution -
Python 2021-11-07 22:50:11
read pickle file
with open('filename', 'rb') as f: x = pickle.load(f) Add solution -
Python 2021-09-08 08:09:05
python save cookies
import requests, pickle session = requests.session() # (Make some calls) # Save the cookies to file: with open('somefile', 'wb') as f: pickle.dump(session.cookies, f) # __________________________________ # Get the cookies from file: session = reques... Add solution
Best helpers
Ranking is empty