方法
static void Main(string[] args) { string[] a = { "梅西", "卡卡", "郑大世" }; Console.WriteLine(ceshi(a)); Console.ReadKey(); } public static string ceshi(string[] xx){ string b=""; for (int i = 0; i < xx.Length; i++) { b += xx[i]+"|"; } b = b.Remove(b.LastIndexOf("|"), 1); return b;