文章首发于:clawhub.club


String.format(“%06d”, 1)

%06d分析

%d:整数类型(十进制)
0:填补项
6:填补的位数

附上转换表:
image.png