摘要: # 提取img标签 tree_img = etree.HTML(content) width = tree_img.xpath('//img//@width')[0] height = tree_img.xpath('//img//@height')[0] # 替换掉width=,和height= 阅读全文
posted @ 2023-07-14 09:58 布都御魂 阅读(87) 评论(0) 推荐(0) 编辑