使用substring String reque = "1,2,3,1,"; reque = reque.substring(0,reque.length() - 1); System.out.println(reque); 输出 1,2,3,1 每天记录一点点