c#使用Split分割换行符 \r\n

 

 
c# 使用Split分割 换行符,方法如下(其余方法有空再添加):
 
string str = "aa" + "\r\n" + "bb";
 
string[] ss = str.Split(new string[] { "\r\n" }, StringSplitOptions.None);
c# 使用Split分割 换行符,方法如下(其余方法有空再添加):
 
string str = "aa" + "\r\n" + "bb";
 
string[] ss = str.Split(new string[] { "\r\n" }, StringSplitOptions.None);

猜你喜欢

转载自www.cnblogs.com/jj123/p/12746273.html
今日推荐