Answers for "load a Dictionary from File in Python Using the Load Function of the pickle Module"

0

load a Dictionary from File in Python Using the Load Function of the pickle Module

import pickle

with open("myDictionary.pkl", "wb") as tf:
    new_dict = pickle.load(tf)

print(new_dict)
Posted by: Guest on October-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language