【问题标题】:How can I remove one tag from a html file in python?如何从 python 中的 html 文件中删除一个标签? 【发布时间】:2014-05-04 02:55:35 【问题描述】: 如何使用python从html文件中删除<ul>标签? 【问题讨论】: 标签: python html python-2.7 python-3.x 【解决方案1】: 大多数 python xml/html 解析器都有删除元素的方法 两种方式是: how to remove an element in lxml http://beautiful-soup-4.readthedocs.org/en/latest/#extract 【讨论】: