数字字符串长度为七 , 不足则前补零
String str = String.format("%07d",Integer.valueOf("123")); System.out.println(str);