字符串操作Split
字符串操作:
string str ="qwewq i lobe me you?you me";
str.Split(new char[] { ' ', '.', '?' },StringSplitOptions.RemoveEmptyEntries).Length;
说明:
参数1:以' ', '.', '?'字符分割str,
参数2:是否返回空字符串。
开心
字符串操作:
string str ="qwewq i lobe me you?you me";
str.Split(new char[] { ' ', '.', '?' },StringSplitOptions.RemoveEmptyEntries).Length;
说明:
参数1:以' ', '.', '?'字符分割str,
参数2:是否返回空字符串。