saving data in python code example
Example: python store save data
import shelve
shelf = shelve.open(filename)
shelf['key1'] = value1
shelf['key2'] = value2
shelf.close()
# ---
shelf.open(filename)
value1 = shelf['key1']
import shelve
shelf = shelve.open(filename)
shelf['key1'] = value1
shelf['key2'] = value2
shelf.close()
# ---
shelf.open(filename)
value1 = shelf['key1']