V2EX  ›  英汉词典

Escape Sequence

释义 Definition

(计算机)转义序列:在字符串或字符常量中,用反斜杠 \(或其他约定前缀)引导的一组字符,用来表示无法直接输入具有特殊含义的字符与控制动作,如换行 \n、制表符 \t、引号 \"、反斜杠 \\ 等。

例句 Examples

Please add \n at the end of each line.
请在每行末尾加上 \n(换行)的转义序列。

In many languages, the escape sequence \" lets you include double quotes inside a string without ending it.
在许多语言里,转义序列 \" 允许你在字符串中包含双引号而不会把字符串提前结束。

发音 Pronunciation (IPA)

/ɪˈskeɪp ˈsiːkwəns/

词源 Etymology

escape 原义有“逃脱、避开”之意;在计算机早期语境中引申为“避开某个字符的常规解释”,让它以另一种方式被解析。sequence 表示“一连串、序列”。合起来,escape sequence 就是“用一串字符来改变/规避正常解析规则”的记号体系。

相关词 Related Words

文学与名著用例 Literary Works

  • The C Programming Language(Kernighan & Ritchie)——讲解字符串与字符常量时大量使用 \n\t\\ 等转义序列示例。
  • Programming in Lua(Roberto Ierusalimschy)——在字符串字面量章节中介绍 Lua 的转义序列(如 \n\t\ddd 等)。
  • The Unicode Standard(Unicode Consortium)——在讨论字符表示、编码与转义表示法时涉及转义序列与相关记法。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2545 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 03:55 · PVG 11:55 · LAX 19:55 · JFK 22:55
♥ Do have faith in what you're doing.