xpath获取不包含某一子标签的a标签

获取子标签没有 img 标签的a标签

xpath('//li//a[not(img)]')

猜你喜欢

转载自blog.csdn.net/weixin_41822224/article/details/113121361