取xpath最后一个book元素 book[last()] 取xpath最后第二个book元素 book[last()-1] 转载于:https://www.cnblogs.com/z-x-y/p/9718763.html