【发布时间】:2018-08-06 18:33:07
【问题描述】:
查询结果中间的所有值如何对齐?
print('\n\nThis is my first Query in Python\n')
print(tabulate(cursor, showindex=False, headers=cursor.columns))
这是结果:
【问题讨论】:
-
对
tabulate()使用numalign=和/或stralign=命名参数。例如。tabulate(cursor, showindex=False, headers=cursor.columns, numalign="center")