C#中⼏种换⾏符C#中⼏种换⾏符
1.Windows 中的换⾏符"\r\n"
2.Unix/Linux 平台换⾏符是"\n"。
3.MessageBox.Show() 的换⾏符为"\n"
4.Console 的换⾏符为"\n"
换⾏符还因平台差异⽽不同。
linux换行按哪个键为保持平台的通⽤性,可以⽤系统默认换⾏符 System.Environment.NewLine。