摘要: >>> import lxml.html >>> broken_html='AreaPopulation' >>> tree=lxml.html.fromstring(broken_html) #parse the HTML >>> fixed_html=lxml.html.tostring(tree,pretty_print=True) >>> print fixed_html Area P... 阅读全文
posted @ 2018-01-03 12:14 RoyFans 阅读(474) 评论(0) 推荐(0) 编辑