c#字符串转数组 数组转字符串

技术博客 (242) 2023-09-16 17:06:01

string str = “a,b,c,d,e”;
string[] strArray = str.Split(’,’); //字符串转数组
str = string.Empty;
str = string.Join(",", strArray);//数组转成字符串

THE END

发表回复