把char赋值到string里面 vector<char> result; string str=""; for(int i=0;i<result.size();i++){ str.push_back(result[i]);