string[] Str1 = { "北", "京", "你", "好" };
string str = "";
for (int i = 0; i < Str1.Length - 1; i++)
{
str = str + Str1[i] + "|";
}
if (Str1.Length > 0)
{
str = str + Str1[Str1.Length - 1];
}
Console.WriteLine(str);
string str = "";
for (int i = 0; i < Str1.Length - 1; i++)
{
str = str + Str1[i] + "|";
}
if (Str1.Length > 0)
{
str = str + Str1[Str1.Length - 1];
}
Console.WriteLine(str);