【PYTHON】pickle can be used for saving and loading raw Python objects

 import pickle as pk


data_dictionary = {'books'12'articles'100'subjects': ['math''programming''data science']}

with open('readings.pk''wb'as f:
  pk.dump(data_dictionary, f)
with open('readings.pk''rb'as f:
  data = pk.load(f)

print(data)

No comments:

My New Favorite Music Genre Is Polish Noir

These 10 artists create music that is mystical, melancholy, magical, and more. ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏    ...

Contact Form

Name

Email *

Message *