//第一个是循环值,第二个是输出值,第三个是你要检索的字符串
private void RandomSort1(int j,string s1,string test)
{
for (int i1 = j; i1 < test.Length; i1++)
{
string t = s1;
s1 = s1 + test[i1];
//判断取的个数
if (s1.Length == 2) { Console.WriteLine(s1);}
RandomSort1(j=j+1,s1,test);
s1 = t;
}
}