XPath :全稱是XML Path Language,XML路徑語言,它是一門在XML文檔中 ... 獲取祖先div節點res = html.xpath('//li[1]/attribute::*') # 所有屬性值res ...
確定! 回上一頁