生成字符串全排列 // str需要先用sort进行升序排序一次 do { res.push_back(str); // 全排列集合 }while(next_permutation(str.begin(),str.end