#【ライブラリ説明】
リストを使って表が書けます。
#【プログラム】
terminaltables1.py
# -*- coding: utf-8 -*-
from terminaltables import AsciiTable
table_data = [
['Heading1', 'Heading2'],
['row1 column1', 'row1 column2'],
['row2 column1', 'row2 column2'],
['row3 column1', 'row3 column2']
]
table = AsciiTable(table_data)
print table.table

#【参考サイト】
terminaltables
github