刚刚看MSDN的一个例子无意发现的小技巧,大家一看就明白了,不过好像蛮有用的,先记下咯,以后慢慢研究。
using System;
namespace NewLine

{
class Test
{
static void Main()
{
string s1 = "白日依山尽";
string s2 = "黄河入海流";
string s3 = "欲穷千里目";
string s4 = "更上一层楼";
Console.WriteLine("{0}{1}{0}{2}{0}{3}{0}{4}",Environment.NewLine,s1,s2,s3,s4);
Console.ReadKey();
}
}
}