看板 java 關於我們 聯絡資訊
使用jsoup爬蟲 Elements elements = d.select("strong"); for(Element e: elements){ System.out.println(e.text()); } 爬網頁<strong>的值 這段code跑出來的結果 23.7 25.2 27.2 25.2 21.3 16.2 52.72 30.514 那我今天只要取出strong中第一個 第二個 第三個值 那這個code應該如何修正? 煩請高手解答 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.230.240.156 ※ 文章網址: https://www.ptt.cc/bbs/java/M.1491626434.A.E24.html
pttworld: child配index, google練習看summary 04/08 12:55
pttworld: 剛講的是element, elements用next()取下一個element 04/08 13:06
mg817: strong:lt(3) 04/11 12:29