public static void output() { String s = aabbcc dd ee; const char comma = ; const char space = ; char[] schar = new char[] { comma space }; foreach (String s in sSplit(schar)) { ConsoleWriteLine(s); } } foreach (String s in sSplit(schar))也可以直接写foreach (String s in sSplit( )) Split()使用params参数不限定的 |