Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
    
with open(PIK, "rb") as f:
    print pickle.load(f)
 
PREVIOUS NEXT
Tagged: #pkl #save #multiple #files
ADD COMMENT
Topic
Name
3+6 =