Initial commit
This commit is contained in:
10
Solutions/9_3/structly/tableformat/formats/csv.py
Normal file
10
Solutions/9_3/structly/tableformat/formats/csv.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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))
|
||||
Reference in New Issue
Block a user