日期:2014-05-18 浏览次数:20995 次
string aa = "10,13,13,45"; string[] st = aa.Split(','); double[] d = new double[4]; d = st.Select(x => new { num = Convert.ToDouble(x) }).Select(v => v.num).ToArray();
------解决方案--------------------
string[] st = aa.Split(','); double[] ds = Array.ConvertAll(st, v1 => double.Parse(v1));