python 获取 xpath 当前标签名

print(table.xpath('./following-sibling::*[1]')[0].tag)

你可能感兴趣的:(python,xpath)