Xpath表达式: /:表示从头开始提取 @:提取标签属性值(@href) //:提取当前页面下左右的某个属性值(//li) text():提取标签下的值 []:提取标签下的属性://li[@class = '']/ 转载于:https://www.cnblogs.com/zxzx1/p/10903027.html