Files
code-dumps/py/termtable.py
T
2025-06-18 21:22:41 +08:00

11 lines
246 B
Python

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)