framework.py 文件源码

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

项目:sff 作者: nevarezs 项目源码 文件源码
def _print_table(self, data):
        """Print table to stdout."""
        max_width = 45
        wrapped_data = \
            [["\n".join(wrap(col, max_width))
                if ((type(col) is str or type(col) is unicode)
                    and len(col) > max_width)
                else col
                for col in row]
                for row in data]
        table = AsciiTable(wrapped_data)
        table.inner_row_border = True
        print table.table
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号