C# 分割字符串-Split

按照某个(某组)字符对字符串进行分割,结果返回String类型数组:

string[] str2 = s1.Split(new char {'分割符'},StringSplitOptions.RemoveEmptyEntries);

猜你喜欢

转载自blog.csdn.net/qq_42675313/article/details/82153263