string str = ",1,3,4,7,11,13";
string[] arr=str.Split(',');
ArrayList arr1 =new ArrayList ();
for (int i = 0; i < arr.Length; i++)
{
try
渣顷轿 {
如肆 arr1.Add(Int32.Parse(arr[i]));
}
catch
{
//判断不是数字
乎顷 }
}
string str = "逗蚂刘备,关羽,张飞";
string[] arrStr = str.Split(',');/核滑/按逗号截山氏埋取