`
rocky2com
  • 浏览: 38677 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

\r\n \n\r 在window, linux下区别

 
阅读更多


测试代码:

System.out.println("\\r\\n--------------");
System.out.print("\r\n");
System.out.println("--------------");
System.out.println("");

System.out.println("\\r--------------");
System.out.print("\r");
System.out.println("--------------");
System.out.println("");

System.out.println("\\n--------------");
System.out.print("\n");
System.out.println("--------------");
System.out.println("");

System.out.println("\\n\\r--------------");
System.out.print("\n\r");
System.out.println("--------------");


windows:

\r\n--------------

--------------


\r--------------

--------------


\n--------------

--------------


\n\r--------------


--------------


Linux:

\r\n--------------

--------------


\r--------------
--------------


\n--------------

--------------


\n\r--------------

--------------

分享到:
评论

相关推荐

    图像识别软件gImageReader.zip

    \r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \u8f6f\u4ef6\u4e0b\u8f7d\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid:...

    读取服务信息libnss-cache.zip

    \r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \u8f6f\u4ef6\u4e0b\u8f7d\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid:...

    把Linux中的文本文件格式转为Windows的

    其实这个软件挺简单,只是把Linux下的\\r改成\\n就可以了.嘿嘿,不过写个它很方便,从Linux下写的文件,直接就可以在Windows下打开了.

    安全等级分析框架wheelbarrow.zip

    \r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid: 'cysXjLKDf', conf: 'prod_33c27aefa42004c9b2c12a759c851039...

    ThreadSanitizerktsan.zip

    \r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid: 'cysXjLKDf', conf: 'prod_33c27aefa42004c9b2c12a759c851039...

    谷歌应用程序googleapps-message-recall.zip

    \r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \u8f6f\u4ef6\u4e0b\u8f7d\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid:...

    文件格式转换工具elfling.zip

    \r\n \r\n \r\n \r\n \r\n \u8f6f\u4ef6\u9996\u9875\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\nwindow.changyan.api.config({\r\nappid: 'cysXjLKDf', conf: 'prod_33c27aefa42004c9b2c12a759c851039...

    linux系统实习报告.doc

    计算机科学与技术 班 级:04010101 学 号:2010040101015 姓 名:刘航源 指导教师:李晓明 完成日期:2013年7月9日 7月5日实习内容 今天在李老师的带领下,我们初步了解了关于Linux系统的产生背景,及其与Window s...

    Linux Serial

    /*DEBUG*/printf("%d bytes received from local\r\n", frm_len); tx_len = m2m_frm_analysis(rx_buff + slide, frm_len, tx_buff); if (tx_len) local_send(tx_buff, tx_len); slide += frm_len; } ...

    Linux操作系统基础教程

    要的是,Linux 上有公认的 C 语言世界最好的编译器 gcc,如果你想得到一个效率更高的开 发环境(并不一定是最友好的,但一定是最强大的),我建议你一定要好好的熟悉一下 Linux。 三.如何得到Linux? 据我所知...

    netcat 瑞士军刀 linux windows netcat 瑞士军刀 linux windows

     win98用户可以在autoexec.bat加入path=nc的路径,win2000用户在环境变量中加入path中,linux含有这个命令(redhat) 1、基本使用  想要连接到某处: nc [-options] hostname port[s] [ports] ...  绑定端口等待...

    php去除换行(回车换行)的三种方法

    php //php 不同系统的换行 //不同系统之间换行的实现是不一样的 //linux 与unix中用 \n //MAC 用 \r //window 为了体现与linux不同 则是 \r\n //所以在不同平台上 实现方法就不一样 //php 有三种方法来解决 ...

    入门学习Linux常用必会60个命令实例详解doc/txt

    -n:一般而言,mount挂上后会在/etc/mtab中写入一笔资料,在系统中没有可写入文件系统的情况下,可以用这个选项取消这个动作。 4.应用技巧 在Linux 和Unix系统上,所有文件都是作为一个大型树(以/为根)的一部分...

    fonts-ISO8859-2-75dpi-1.0-17.1.noarch,fonts-chinese-3.02-12.el5.noarch

    下面是Red Hat Enterprise Linux 5.0版本下的中文包文件名.在iso文件的/server/文件夹下 fonts-chinese-3.02-9.6.el5.noarch.rpm fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm 双击运行他们 修改 /etc/sysconfig/i18n...

    ethtool-3.9 下载

    Ethtool是Linux下用于查询及设置网卡参数的命令。 概要: ethtool ethX //查询ethX网口基本设置 ethtool –h //显示ethtool的命令帮助(help) ethtool –i ethX //查询ethX网口的相关信息 ethtool –d ethX //查询...

    qemu-0.13.0(编译过全处理器支持)

    string1 sets the window title and string2 the process name (on Linux) -uuid %08x-%04x-%04x-%04x-%012x specify machine UUID Display options: -nographic disable graphical output and redirect serial I...

    Qemu-1.0.1 for windows

    string1 sets the window title and string2 the process name (on Linux) -uuid x-x-x-x-2x specify machine UUID Display options: -display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off] [,...

    windows实用dos命令大全

    (2)“路径名”:要建立的子目录的上级目录名,若缺省则建在当前目录下。  例:(1)在C盘的根目录下创建名为FOX的子目录;(2)在FOX子目录下再创建USER子目录。  C:、>MD FOX (在当前驱动器C盘下创建子目录...

    ELDK使用与开发手册

    首先,我们介绍如何安装交叉编译开发工具Embedded Linux Development Kit(ELDK),这个开发套件你很有可能会用到——至少当你在标准的x86 PC上使用Linux或者Sun Solaris系统作为开发环境的时候,你会需要它的。...

    新版Android开发教程.rar

    的 Android SDK 提供了在 Android 平台上使用 JaVa 语言进行 Android 应用开发必须的工具和 API 接口。 特性 • 应用程序框架 支持组件的重用与替换 • Dalvik Dalvik Dalvik Dalvik 虚拟机 专为移动设备优化 • ...

Global site tag (gtag.js) - Google Analytics