1将一个字符串数组输出为|分割的形式

来源:互联网 发布:淘宝色情服务暗语 编辑:程序博客网 时间:2024/05/16 07:59
string[] str={"12","565","56","34"};
            for (int i = 0; i < str.Length-1 ;i++ )
            {
                Console.Write(str[i]+"|");
            }
            Console.Write(str[str.Length-1]);
    Console.ReadKey();