c#字符串转换成double数组

xiaoxiao2021-02-27  222

string strText="1,3,2,3,3242,324";string[] strArr=strText.Split(',');double[] intArr=new double[strArr.Length];for(int i=0;i<strArr.Length;i++){ intArr[i]=Convert.ToInt32(strArr[i]);}
转载请注明原文地址: https://www.6miu.com/read-8912.html

最新回复(0)