0

Python module pickle

Help . How to delete all data from a file ?

29th Oct 2018, 10:29 PM
Rashid Omariev
Rashid  Omariev - avatar
3 Respostas
+ 2
How are "deleting all file data" and pickle related?
30th Oct 2018, 12:05 AM
Kirk Schafer
Kirk Schafer - avatar
0
just do: with open(filename, 'w') as fp: pass
29th Oct 2018, 11:40 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
Thanks))
29th Oct 2018, 11:51 PM
Rashid Omariev
Rashid  Omariev - avatar