Files
python-mastery/Solutions/9_4/structly/tableformat/formats/csv.py
David Beazley 7d4b30154a Initial commit
2023-07-16 20:21:00 -05:00

11 lines
235 B
Python

# csv.py
from ..formatter import TableFormatter
class CSVTableFormatter(TableFormatter):
def headings(self, headers):
print(','.join(headers))
def row(self, rowdata):
print(','.join(str(d) for d in rowdata))