int x = ; while(x<){ DecimalFormat df = new DecimalFormat(""); String xs = df.format(x); System.out.println(xs); x++; }将 1 格式化为 001