在C#中,什么是\\\
和\r\\\
之间的区别?
问题描述:
由于每科...
答
\\\
是UNIX, \r
的Mac上, \r\\\
为Windows。
\n
is Unix, \r
is Mac, \r\n
is Windows.
有时,它的运行代码的跨平台时,特别是给予麻烦。您可以通过使用 Environment.NewLine
绕过这个
Sometimes it's giving trouble especially when running code cross platform. You can bypass this by using Environment.NewLine
.
请参照的What \r,\\\
和\r\\\
区别?! 了解更多信息。快乐阅读
Please refer to What is the difference between \r, \n and \r\n ?! for more information. Happy reading