字符串

来源:互联网 发布:ubuntu mp3播放器 编辑:程序博客网 时间:2024/05/21 21:40

字符串分割:

string words = "This is a list of words, with: a bit of punctuation \tand a tab character.";

      string[] split = words.Split(new Char[] { ' ', ',', '.', ':', '\t' });
或   ArrayList al = new ArrayList(words.Split(Convert.ToChar("_")))