Как прочитать файл рассола? ⇐ Python
-
Гость
Как прочитать файл рассола?
I created some data and stored it several times like this:
with open('filename', 'a') as f: pickle.dump(data, f) Every time the size of file increased, but when I open file
with open('filename', 'rb') as f: x = pickle.load(f) I can see only data from the last time. How can I correctly read file?
Источник: https://stackoverflow.com/questions/350 ... ickle-file
I created some data and stored it several times like this:
with open('filename', 'a') as f: pickle.dump(data, f) Every time the size of file increased, but when I open file
with open('filename', 'rb') as f: x = pickle.load(f) I can see only data from the last time. How can I correctly read file?
Источник: https://stackoverflow.com/questions/350 ... ickle-file