如何判断一个字符串中的回车数量1.阿斯顿发送 2.阿斯顿发的 3.安师大手动 如何获取上面的字符串中 回车符的数量[解决办法]try string test = @ "1.阿斯顿发送 2.阿斯顿发的 3.安师大手动 "; int num = test.Length - test.Replace( "\n ", " ").Length;