发布网友 发布时间:2022-04-23 00:55
共1个回答
热心网友 时间:2022-04-19 04:38
..conn = sqlite3.connect(database='thedbfile')curr = conn.cursor()curr.execute("select * from thetable") tr1 = table1 << tr(id="header")for field in curr.description: tr1 << th(field[0]) for row in curr: tr2 = table1 << tr() for item in row: tr2 << td(item) curr.close()conn.close()...以上代码基于1L"就是累w_w"的方案进行完善