string.format

1、String.format("%08d", ***)

%d,代表整数类型(十进制),前边%08d表示输出宽度为8,不足8位的补0

原文地址:https://www.cnblogs.com/shueixue/p/5795126.html