原创 分割字符串的方法

(1)如果字符串格式爲 String str="abc#def#hijkl#mn"; string[] s = str.Split(new char[] { '#' }); 結果就是 s[0]="abc"; s[1]="def"; s[2