摘要:
方法一 注:需要.net 3.5框架的支持string s = "101,102,103,104,105,101,102,103,104,105,106,107,101,108";s = string.Join(",", s.Split(',').Distinct().ToArray());方法二class Program { static void Main(string[] args) { string result=""; string str = "101,102,103,104,105,101,10 阅读全文