pdf_generator.py 文件源码

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

项目:yahoo-fantasy-football-metrics 作者: uberfastman 项目源码 文件源码
def create_data_table(self, col_headers, data, table_style_for_ties, col_widths=None, tied_metric_bool=False):

        [col_headers.append(item) for item in data]
        table = Table(col_headers, colWidths=col_widths)

        if tied_metric_bool:
            if col_headers[0][-1] == "Bench Points":
                tied_score_col_widths = [0.75 * inch, 1.75 * inch, 1.75 * inch, 1.00 * inch, 1.50 * inch, 1.00 * inch]
                table = Table(col_headers, colWidths=tied_score_col_widths)
            table.setStyle(table_style_for_ties)
        else:
            table.setStyle(self.style)
        return table
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号