Python CSV schreiben neue Zeile hinzufügen
with open('output.csv', 'w', newline='\n', encoding='utf-8') as f:
writer = csv.writer(f)
...
Proud Polecat
with open('output.csv', 'w', newline='\n', encoding='utf-8') as f:
writer = csv.writer(f)
...
import csv
fields=['first','second','third']
with open(r'name', 'a') as f:
writer = csv.writer(f)
writer.writerow(fields)