Answers for "python store save data"

2

python store save data

import shelve

shelf = shelve.open(filename)
shelf['key1'] = value1
shelf['key2'] = value2

shelf.close()

# ---

shelf.open(filename)

value1 = shelf['key1']
Posted by: Guest on January-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language