string.at(idx), string[idx] 的返回值是 char 型; 实测 string.append(char ch) 添加 char 型元素会出错,建议使用 += char 添加元素到当前字符串。 Previous Series Article of cpp -- 15 Next Series Article of cpp -- 17 CATALOG FEATURED TAGS Ubuntu OS Work Space Java python pytorch RasPi c++ STL Jetson Nano Algorithm CS basis FRIENDS AI @ OUC AI Institute of OUC Innovation Center of OUC NIO