换行(LF)

U+000A

符號含義

The symbol U+000A is known as Line Feed (LF) or New Line (NL) character. It was developed to indicate the end of a text line and the beginning of a new line in text documents, computer terminals, and text processing systems. The line feed moves the printer's drum by one line. On a video terminal, it moves the cursor down and, if necessary, scrolls the image.

As for computer terminals and text editors, Line Feed is used there to move the cursor to the beginning of the next line. It is the standard way of indicating the end of a line in UNIX-like operating systems, including Linux and macOS.

However, Windows operating systems feature a combination of Carriage Return (CR) and Line Feed (LF) (represented as 「\r\n」) in order to indicate the end of the line.

In the early teleprinters that operated at a few baud rates, the division of control characters into CR and LF was not random. It concealed the fact that the carriage far to the right might not have enough time to reach the next character. What's even worse, the concepts of 「driver」 and 「buffering」 did not exist yet.

When it came to Morse code, there was used a separator -•••− , mnemonic BT (Break Text).

Just like other control characters, this character has no visual representation and does not occupy much space on screen or in typed text. There are two separate symbols in 控制图片  2400–243F representing a graphical image of the U+000A character: the Line Feed symbol in the form of an abbreviation LF (Line Feed) — and the New Line symbol in the form of an abbreviation NL (New Line) — .

Escape sequence: \n.

It's one of the eight control symbols, the presence of which is required by POSIX:

符号 「换行(LF)」 包含在 「基本拉丁字母」 块的 「C0控制」 子块中,并在1993年作为Unicode版本1.1的一部分获得批准。

文本还可以在以下语言: English; Русский;

Unicode名称 New Line
Unicode编号
飞机 0 基本多文種平面
Unicode 块 基本拉丁字母
Unicode 子块 C0控制
Unicode版本 1.1 (1993)
快捷键 ^J
转义序列 \n
配對後視鏡支架類型(bidi) None
成分排除 No
案例變更 000A
簡單的大小寫更改 000A
scripts Common
White_Space +
Pattern_White_Space +
编码 hex dec (bytes) dec binary
UTF-8 0A 10 10 00001010
UTF-16BE 00 0A 0 10 10 00000000 00001010
UTF-16LE 0A 00 10 0 2560 00001010 00000000
UTF-32BE 00 00 00 0A 0 0 0 10 10 00000000 00000000 00000000 00001010
UTF-32LE 0A 00 00 00 10 0 0 0 167772160 00001010 00000000 00000000 00000000

复制并粘贴这些代码,以在网站、社交媒体、即时通讯或博客文章中使用换行(LF)角色。

HTML
CSS
JavaScript, JSON
Unix, C, PHP, JAVA
Ruby, PHP
Perl
URL-encode
已复制!