摘要: tag的 .contents 属性可以将tag的子节点以列表的方式输出: 1 head_tag = soup.head 2 head_tag 3 # <head><title>The Dormouse's story</title></head> 4 5 head_tag.contents 6 [< 阅读全文
posted @ 2021-05-14 07:57 大雄的脑袋 阅读(48) 评论(0) 推荐(0) 编辑