H
H
h0rseMan2016-03-03 12:20:20
Python
h0rseMan, 2016-03-03 12:20:20

How to write the results of CSV parsing to a file?

Parsilka works correctly, but I can't write the result to a txt file. Let me know, I'll be very grateful. Python3

import csv
with open('test5.csv') as csvfile:
    readCSV = csv.reader(csvfile, delimiter='"')
    for row in readCSV:
        print(row)
        print(row[0],row[1],row[2],row[3],)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-03-03
@h0rseMan

https://docs.python.org/3/library/csv.html#csv.writer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question