provide --output text option for cli
snowch opened this issue · 2 comments
snowch commented
Python 2.7
import csv
with open("output.csv", "wb") as f:
writer = csv.writer(f)
writer.writerows(a)
Python 3
import csv
with open("out.csv", "w", newline="") as f:
writer = csv.writer(f)
writer.writerows(a)
Source: https://stackoverflow.com/questions/14037540/writing-a-python-list-of-lists-to-a-csv-file
snowch commented
snowch commented
Done