content = etree.HTML(text) h = content.xpath(‘//h1‘) h1 = h[0].xpath(‘string(.)‘).strip()
原文地址:https://www.cnblogs.com/hankleo/p/10394905.html
时间: 2024-10-03 15:48:25
content = etree.HTML(text) h = content.xpath(‘//h1‘) h1 = h[0].xpath(‘string(.)‘).strip()
原文地址:https://www.cnblogs.com/hankleo/p/10394905.html