分割字串的相關文章
c#字元串分割_已解決_博問_博客園

c#字元串分割_已解決_博問_博客園

瀏覽:1482
日期:2024-09-07
估計正則能直接給分割。。 string str = "aabbcceedd1"; char[] list = str.ToCharArray(); if (list.Length % 2 == 0) { for (int i = 0; i < list.Length; i += 2) { Response.Write(string.Concat(list[i], list[i + 1]) + "");...看更多