Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to permanently store data in python

import pickle

variable = "Hi"

#Save the variable
pickle.dump(variable, open("variableStoringFile.dat", "wb"))
            
#Load the variable
variable = pickle.load(open("variableStoringFile.dat", "rb"))
 
PREVIOUS NEXT
Tagged: #permanently #store #data #python
ADD COMMENT
Topic
Name
6+3 =