python生成html

来源:互联网 发布:淘宝购买数据分析 编辑:程序博客网 时间:2024/04/29 18:22

https://code.google.com/p/pyh/


pyh module


def html_table(data):    table = pyh.table(border=1)    for row in data:        tr = pyh.tr()        for i in row:            tr << pyh.td(i)        table << tr    return table.render(), table


0 0
原创粉丝点击