pyquery获取文本节点(TextNode) Posted on 2019, Jun 05 by mannuan One min read from pyquery import PyQuery as pq p = pq(字符串) for i in p.contents(): print(i)