📅  最后修改于: 2022-03-11 14:45:15.476000             🧑  作者: Mango
[x.decompose() for x in soup.findAll(lambda tag: (not tag.contents or len(tag.get_text(strip=True)) <= 0) and not tag.name == 'br' )]