pickle is a Python package for saving and loading a dict file.
usually the code like this:
For saving:
1 | with open('dict_frame_score.pkl', 'wb') as f: |
For loading:
1 | with open("dict_frame_score.pkl", "rb") as f: |
If you save several dicts using pickle.dump()
, you should use the same amount of pickle.load(f)
to load them.
Comments
shortname
for Disqus. Please set it in_config.yml
.