Answer the question
In order to leave comments, you need to log in
Why does Windows save the csv file crookedly?
I save the file under Linux and get a normal file:
If the same script is run under windows, then for different organizations the addresses begin to repeat
The save code itself:
def save_data(row, file_name):
with open(file_name, 'a', newline='') as f:
writer = csv.writer(f)
if row:
writer.writerow(row)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question