目录一、C++20之前的字符串格式化方法1.printf系列函数2.sstream3. 第三方库(如boost.format)二、C++20之前的字符串格式化方法对比三、C++20的std::format:现代、安全、灵活的字符串格式化1.std::format的基本用法