%s字符串
String s = String.format("Hello %s,Welcome to my blog!", "jerry");
System.out.println(s);//Hello jerry,Welcome to my blog!
String.format("%02d", year)
year格式化为至少2位十进制整数 int year = 5; 结果为05
%d 为数字
String.format("user:%d:wxSessionKey", userId);