C#中的\r\n和\n\r什么区别
enter+newline with different platforms:
windows: \r\n
mac: \r
【C#中的\r\n和\n\r什么区别】unix/linux: \n
in "abc" + ”\n\rdef”, \n\r do not match any platform,so it is considered as \n and \r (which match unix/linux and mac),so there are two new lines.(有两个空行)
in "abc" + ”\r\ndef” \r\n matches the windows platform,so it is considered as only one new line.(有一个空行)
推荐阅读
- 热闹中的孤独
- 急于表达——往往欲速则不达
- 第三节|第三节 快乐和幸福(12)
- 20170612时间和注意力开销记录
- 为什么你的路演总会超时()
- 2.6|2.6 Photoshop操作步骤的撤消和重做 [Ps教程]
- 对称加密和非对称加密的区别
- JS中的各种宽高度定义及其应用
- 眼光要放高远
- 财商智慧课(六)