【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:

Power Is Shifting Rapidly to Indie Creators

The exodus from Twitter since the election is a sign of things to come ͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ­͏     ...

Contact Form

Name

Email *

Message *