用StringBuilder类里面的方法,substring截取,reverse翻转
Java代码 String str = "440103000000"; System.out.print(str.replaceAll("0*$", ""));