字符串长度不足前面填0

String.format("%06d",111)  不足填前面填0

猜你喜欢

转载自meaijuan.iteye.com/blog/2255986