字符串格式化

1.前面补0:String.format('%2d',7)==>07   里面的2是两位数。

原文地址:https://www.cnblogs.com/you-hun/p/11985103.html