通过String.format 方式来进行左位补零操作. // 1为int 类型、0代表前面要补位的字符、2代表字符串的长度、d表示参数为整数类型 String s = String.format("%02d", 1); ...
確定! 回上一頁