NEW: terminaltable demo

This commit is contained in:
xpk 2022-05-13 13:56:09 +08:00
parent 6610541668
commit 32e32bfff6
Signed by: xpk
GPG Key ID: CD4FF6793F09AB86

10
py/termtable.py Normal file
View File

@ -0,0 +1,10 @@
from terminaltables import SingleTable
table_data = [
['Heading1', 'Heading2'],
['row1 column1', 'row1 column2'],
['row2 column1', 'row2 column2'],
['row3 column1', 'row3 column2']
]
t1 = SingleTable(table_data)
print (t1.table)