yar*_*art 5 html python
我有字典,并希望生成html页面,其中将绘制简单的html表与键和值.如何从python代码完成?
rui*_*rui 10
output = "<html><body><table>" for key in your_dict: output += "<tr><td>%s</td><td>%s</td></tr>" % (key, your_dict[key]) output += "</table></body></html> print output
归档时间:
16 年,2 月 前
查看次数:
13392 次
最近记录: