表数据问题

时间:2018-04-27 07:14:21

标签: python html css

我在python中使用html但是在某些单元格中数据很长并且它们位于下一个单元格的前面。 我正在使用以下代码表:

packages_table = TABLE(_border=1,_width="100%",_font=12)
            packages_table.append(TR(
            TH("Transaction ID",_width="17%",_align="LEFT"),
            TH("Date",_width="17%",_align="LEFT"),
            TH("Time",_width="10%",_align="LEFT"),
            TH("Package",_width="30%",_align="LEFT"),
            TH("Amount(EUR) ("+currency1+")",_width="24%",_align="LEFT")
            ))

我正在使用此

填充
packages_table.append(TR(str(tx_id),str(date),str(time),str(receiver),str(amount)))

示例输出

enter image description here

0 个答案:

没有答案