天天看点

String.format的用法

public static void main(String[] args) {
        String bb = String.format("我们是%s人,也是%s人", "中国","龙的传");
        System.out.println(bb);
    }
我们是中国人,也是龙的传人