PillarReport.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:deep_data_bench 作者: DeepFound 项目源码 文件源码
def printTable(data):
  """ print a pretty table """
  from prettytable import PrettyTable
  column_header_list = data[0].keys()
  x = PrettyTable()
  x.field_names = column_header_list
  for col in column_header_list:
    x.align[col] = "l"
  x.align[column_header_list[0]] = "r"
  x.padding_width = 1
  for row in data:
    row_to_add = []
    for col in column_header_list:
      row_to_add.append(row[col])
    x.add_row(row_to_add)
  print x.get_string()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号