IList<int> List_Result = new List<int>(); for (int i = 1; i <= 100; i++) { List_Result.Add(3 * i); } string result = ""; foreach (int i in List_Result) result += i.ToString() + ","; result = result.Substring(0, result.Length - 1);
IList List_Result = new List(); for (int i = 1; i <= 100; i++) { List_Result.Add(3 * i); } string result = ""; foreach (int i in List_Result) result += i.ToString() + ","; result = result.Substring(0, result.Length - 1);
string result = string.Join(",",List_Result);代替拼接部分要简单点