Answers for "how to add a row to a csf file in python"

1

python csv add row

import csv   

fields=['first','second','third']

with open(r'name', 'a') as f:
    writer = csv.writer(f)
    writer.writerow(fields)
Posted by: Guest on May-13-2020

Code answers related to "how to add a row to a csf file in python"

Python Answers by Framework

Browse Popular Code Answers by Language