代码如下:
//string strText = "1334677999";实现无重复
public static string qu(string lab)
{
string strResult = string.Empty;
for (int intIdx = 0; intIdx < lab.Length; intIdx++)
{
if (strResult.IndexOf(lab.Substring(intIdx, 1)) < 0)
{
strResult += lab.Substring(intIdx, 1);
}
}
return strResult;
}