{"id":998,"date":"2021-03-22T09:42:07","date_gmt":"2021-03-22T01:42:07","guid":{"rendered":"http:\/\/www.mustenaka.cn\/?p=998"},"modified":"2021-10-11T09:18:06","modified_gmt":"2021-10-11T01:18:06","slug":"difrnandrn","status":"publish","type":"post","link":"https:\/\/www.mustenaka.cn\/index.php\/2021\/03\/22\/difrnandrn\/","title":{"rendered":"\\r\u4ee5\u53ca\\n\u8fd8\u6709\\r\\n\u7684\u533a\u522b"},"content":{"rendered":"<p>\\r(ascii: 13)\u79f0\u4e4b\u4e3a\u56de\u8f66\uff08Carriage Return\uff09\uff0c\u800c\\n(ascii 10)\u79f0\u4e4b\u4e3a\u6362\u884c(Line Feed)<\/p>\n<hr \/>\n<h4>\u5386\u53f2<\/h4>\n<p>\u5728\u8ba1\u7b97\u673a\u8fd8\u6ca1\u6709\u51fa\u73b0\u4e4b\u524d\uff0c\u6709\u4e00\u79cd\u53eb\u505a\u7535\u4f20\u6253\u5b57\u673a\uff08Teletype Model 33\uff0cLinux\/Unix\u4e0b\u7684tty\u6982\u5ff5\u4e5f\u6765\u81ea\u4e8e\u6b64\uff09\u7684\u73a9\u610f\uff0c\u6bcf\u79d2\u949f\u53ef\u4ee5\u625310\u4e2a\u5b57\u7b26\u3002\u4f46\u662f\u5b83\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u5c31\u662f\u6253\u5b8c\u4e00\u884c\u6362\u884c\u7684\u65f6\u5019\uff0c\u8981\u7528\u53bb0.2\u79d2\uff0c\u6b63\u597d\u53ef\u4ee5\u6253\u4e24\u4e2a\u5b57\u7b26\u3002\u8981\u662f\u5728\u8fd90.2\u79d2\u91cc\u9762\uff0c\u53c8\u6709\u65b0\u7684\u5b57\u7b26\u4f20\u8fc7\u6765\uff0c\u90a3\u4e48\u8fd9\u4e2a\u5b57\u7b26\u5c06\u4e22\u5931\u3002<\/p>\n<p>\u4e8e\u662f\uff0c\u7814\u5236\u4eba\u5458\u60f3\u4e86\u4e2a\u529e\u6cd5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c31\u662f\u5728\u6bcf\u884c\u540e\u9762\u52a0\u4e24\u4e2a\u8868\u793a\u7ed3\u675f\u7684\u5b57\u7b26\u3002\u4e00\u4e2a\u53eb\u505a\u201c\u56de\u8f66\u201d\uff0c\u544a\u8bc9\u6253\u5b57\u673a\u628a\u6253\u5370\u5934\u5b9a\u4f4d\u5728\u5de6\u8fb9\u754c\uff1b\u53e6\u4e00\u4e2a\u53eb\u505a\u201c\u6362\u884c\u201d\uff0c\u544a\u8bc9\u6253\u5b57\u673a\u628a\u7eb8\u5411\u4e0b\u79fb\u4e00\u884c\u3002\u8fd9\u5c31\u662f\u201c\u6362\u884c\u201d\u548c\u201c\u56de\u8f66\u201d\u7684\u6765\u5386\uff0c\u4ece\u5b83\u4eec\u7684\u82f1\u8bed\u540d\u5b57\u4e0a\u4e5f\u53ef\u4ee5\u770b\u51fa\u4e00\u4e8c\u3002<\/p>\n<p>\u540e\u6765\uff0c\u8ba1\u7b97\u673a\u53d1\u660e\u4e86\uff0c\u8fd9\u4e24\u4e2a\u6982\u5ff5\u4e5f\u5c31\u88ab\u822c\u5230\u4e86\u8ba1\u7b97\u673a\u4e0a\u3002\u90a3\u65f6\uff0c\u5b58\u50a8\u5668\u5f88\u8d35\uff0c\u4e00\u4e9b\u79d1\u5b66\u5bb6\u8ba4\u4e3a\u5728\u6bcf\u884c\u7ed3\u5c3e\u52a0\u4e24\u4e2a\u5b57\u7b26\u592a\u6d6a\u8d39\u4e86\uff0c\u52a0\u4e00\u4e2a\u5c31\u53ef\u4ee5\u3002\u4e8e\u662f\uff0c\u5c31\u51fa\u73b0\u4e86\u5206\u6b67\u3002<\/p>\n<p>&#8216;\\r&#8217; \u56de\u8f66\uff0c\u56de\u5230\u5f53\u524d\u884c\u7684\u884c\u9996\uff0c\u800c\u4e0d\u4f1a\u6362\u5230\u4e0b\u4e00\u884c\uff0c\u5982\u679c\u63a5\u7740\u8f93\u51fa\u7684\u8bdd\uff0c\u672c\u884c\u4ee5\u524d\u7684\u5185\u5bb9\u4f1a\u88ab\u9010\u4e00\u8986\u76d6\uff1b<\/p>\n<p>&#8216;\\n&#8217; \u6362\u884c\uff0c\u6362\u5230\u5f53\u524d\u4f4d\u7f6e\u7684\u4e0b\u4e00\u884c\uff0c\u800c\u4e0d\u4f1a\u56de\u5230\u884c\u9996\uff1b<\/p>\n<blockquote><p>Linux\u7cfb\u7edf\u91cc\uff0c\u6bcf\u884c\u7ed3\u5c3e\u53ea\u6709\u201c&lt;\u6362\u884c&gt;\u201d\uff0c\u5373&#8221;\\n&#8221;\uff1b<\/p>\n<p>Windows\u7cfb\u7edf\u91cc\u9762\uff0c\u6bcf\u884c\u7ed3\u5c3e\u662f\u201c&lt;\u56de\u8f66&gt;&lt;\u6362\u884c&gt;\u201d\uff0c\u5373\u201c\\r\\n\u201d\uff1b<\/p>\n<p>Mac\u7cfb\u7edf\u91cc\uff0c\u6bcf\u884c\u7ed3\u5c3e\u662f\u201c&lt;\u56de\u8f66&gt;\u201d\uff0c\u5373&#8221;\\r&#8221;\uff1b\u3002<\/p><\/blockquote>\n<p>\u4e00\u4e2a\u76f4\u63a5\u540e\u679c\u662f\uff0cUnix\/Mac\u7cfb\u7edf\u4e0b\u7684\u6587\u4ef6\u5728Windows\u91cc\u6253\u5f00\u7684\u8bdd\uff0c\u6240\u6709\u6587\u5b57\u4f1a\u53d8\u6210\u4e00\u884c\uff1b\u800cWindows\u91cc\u7684\u6587\u4ef6\u5728Unix\/Mac\u4e0b\u6253\u5f00\u7684\u8bdd\uff0c\u5728\u6bcf\u884c\u7684\u7ed3\u5c3e\u53ef\u80fd\u4f1a\u591a\u51fa\u4e00\u4e2a^M\u7b26\u53f7\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u5230\u4e86\u73b0\u5728\uff0c\u8fd9\u4e09\u4e2a\u8bcd\uff0c\u5168\u662f\u4e00\u4e2a\u610f\u601d\uff0c\u90a3\u5c31\u662f\u6362\u884c\uff0c\u5373\u5149\u6807\u79fb\u52a8\u5230\u4e0b\u4e00\u884c\u7684\u5f00\u5934\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7528\u4ee3\u7801\u5199\u5982\u4e0b\u5185\u5bb9<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"\" python=\"\">print(\"hello world \\r\\neuuu\")\r\nprint(\"hello world \\neuuu\")\r\nprint(\"hello world \\reuuu\")<\/code><\/pre>\n<p>\u4ed6\u4eec\u7684\u7ed3\u679c\u90fd\u662f<\/p>\n<div>\n<blockquote>\n<div><span>hello world <\/span><\/div>\n<div><span>euuu<\/span><\/div>\n<\/blockquote>\n<\/div>\n<div>\u8fd9\u662f\u56e0\u4e3a\u5230\u4e86\u73b0\u5728\uff0c\u8ba1\u7b97\u673a\u7684\u5185\u5b58\u548c\u8fd0\u7b97\u901f\u5ea6\u5df2\u7ecf\u5f88\u5927\u4e86\uff0c\u8ba8\u8bba\u8fd9\u4e2a\u5386\u53f2\u9057\u7559\u95ee\u9898\u53cd\u800c\u4f1a\u9020\u6210\u66f4\u591a\u7684\u4e0d\u4fbf\uff0c\u6240\u4ee5\u5927\u5bb6\u5c31\u90fd\u56de\u5f52\u4e86\u8fd9\u4e2a\u95ee\u9898\u7684\u672c\u8d28\uff0c\u90a3\u5c31\u662f\u5c06\u8ba1\u7b97\u673a\u6362\u884c\u3002<\/div>\n<h4>\u6ce8\u610f<\/h4>\n<div>\u4f46\u662f\uff0c\u5373\u4f7f\u662f\u73b0\u5728\uff0c\u8bb8\u591a\u5355\u7247\u673a\uff0c\u4e32\u53e3\u901a\u8baf\u7684\u65f6\u5019\uff0c\u9700\u8981\u5229\u7528\\r\\n\u6807\u5fd7\u8fdb\u884c\u4f20\u8f93\u7684\u622a\u65ad\u5224\u65ad\uff0c\u5373\u9047\u5230\u4e86\\r\\n\u7b26\u53f7\uff0c\u8bfb\u53d6\u5e76\u4e14\u5206\u6790\u8be5\u7b26\u53f7\u524d\u9762\u4f20\u8f93\u8fdb\u6765\u7684\u6240\u6709\u5185\u5bb9\uff0c\u5e76\u4e14\u6267\u884c\u54cd\u5e94\u7684\u7ed3\u679c\uff0c\u6b64\u65f6\uff0c\u5f80\u5f80\u6211\u4eec\u5728\u7cfb\u7edf\u4e2d\u8fdb\u884c\u8f93\u5165\u7684\u5185\u5bb9\uff0c\u662f\u4e0d\u5e26\u8fd9\u4e2a\u6362\u884c\u76f8\u5173\u7684\u7b26\u53f7\u7684\uff0c\u6216\u8005\u7cfb\u7edf\u81ea\u5e26\u7684\u53ea\u6709\\n\uff08\u73b0\u5728\u5f80\u5f80\u90fd\u662f\\n\u4e86\uff09\uff0c\u5c31\u9700\u8981\u4eba\u5de5\u624b\u52a8\u8865\u5168\\r\\n\u624d\u80fd\u8fdb\u884c\u5b8c\u6574\u7684\u53d1\u9001\u3002<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\\r(ascii: 13)\u79f0\u4e4b\u4e3a\u56de\u8f66\uff08Carriage Return\uff09\uff0c\u800c\\n(ascii 10)\u79f0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[],"class_list":["post-998","post","type-post","status-publish","format-standard","hentry","category-essay"],"views":1026,"_links":{"self":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/998","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/comments?post=998"}],"version-history":[{"count":2,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/998\/revisions"}],"predecessor-version":[{"id":1000,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/posts\/998\/revisions\/1000"}],"wp:attachment":[{"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/media?parent=998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/categories?post=998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mustenaka.cn\/index.php\/wp-json\/wp\/v2\/tags?post=998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}