1import csv
2
3fields=['first','second','third']
4
5with open(r'name', 'a') as f:
6 writer = csv.writer(f)
7 writer.writerow(fields)
8
1import csv
2fields=['first','second','third']
3with open(r'name', 'a') as f:
4 writer = csv.writer(f)
5 writer.writerow(fields)