public class Dict { public static void main(String[] args) throws IOException { String w = JOptionPane.showInputDialog("请输入词汇:"); String u = "https://cn.bing.com/dict/search?q="+w; String t = Jsoup.connect(u).get().select("span[class=def b_regtxt]").get(0).text(); JOptionPane.showMessageDialog(null, t); } }
java实现翻译
于 2022-08-31 08:47:15 首次发布