int转String时位数不足补零

String s = String.format("%06",12);

printf s = "000012"

posted on 2016-11-08 10:23  凶狠恶霸罗  阅读(1712)  评论(0)    收藏  举报

导航