python 打印查询结果集到 html
1 |
pip install prettytable |
1 2 3 4 |
# Convert "gameRecords" table to a prettyTable mytable = from_db_cursor(cursor) # Generate the HTML code of the prettyTable using "get_html_string htmlCode = mytable.get_html_string(attributes={"class":"table"}, format=True) |
分类: 技术