Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

save list python

>>> import json
>>> with open("test", "w") as fp:
...     json.dump(l, fp)
...
>>> with open("test", "r") as fp:
...     b = json.load(fp)
...
>>> b
[1, 2, 3, 4]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #list #python
ADD COMMENT
Topic
Name
1+4 =