NEW: terminaltable demo
This commit is contained in:
parent
6610541668
commit
32e32bfff6
10
py/termtable.py
Normal file
10
py/termtable.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user