1. 单个字符分割
string str = "1,2,3,4,5"; string[] strList = str.Split(',');
//结果为strList=["1","2","3","4","5"];
2. 使用指定字符串分割
string str = "我$temp和$temp你"; string strTemp = "$temp";//使用该字符串分割 string[] arr = Regex.Split(str, strTemp, RegexOptions.IgnoreCase); //结果为:arr= ["我","和","你"];