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
|
请发表评论