62,268
社区成员
发帖
与我相关
我的任务
分享
public string[] PaiLie(string str1,string str2)
{
string[] sReturn = new string[32];
for (int i = 0; i < 32; i++)
{
sReturn[i] = Convert.ToString(i, 2).PadLeft(5, '0');
sReturn[i] = sReturn[i].Replace("0", str1);
sReturn[i] = sReturn[i].Replace("1", str2);
}
return sReturn;
}