0
Reading a list of dictionaries in python
I wrote a code that produces a list of dictionaries as a output in the terminal. I’m trying to save this in a database over time. But I’m having a hard time reading the data from the terminal.
1 Antwort
+ 2
Have you looked into file handling (saving and loading your data from your code)?
https://www.pythonforbeginners.com/files/reading-and-writing-files-in-JUMP_LINK__&&__python__&&__JUMP_LINK
If you don't want to transform your data into text format everytime you save (and back every time you load), research the modules json or pickle which simplify the process.