C# .Split("\r\n")

string str = "1\r\n2 222";
string[] strlist = str.Split("\r\n".ToCharArray(),StringSplitOptions.RemoveEmptyEntries);
string[] temp = str.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);


原文链接:https://blog.csdn.net/yal179/java/article/details/38689363

posted @ 2020-04-16 13:37  何华荣  阅读(1453)  评论(0编辑  收藏  举报