string数组转化成int数组

mac2022-06-30  112

string idsStr = "1,2,3,4,5"; int[] ids = idsStr.Split(',').Select(Int32.Parse).ToArray();

 

转载于:https://www.cnblogs.com/zhyue/p/5691037.html

最新回复(0)