1. Shell:
  • \n: newline
  • \t: tab
  • \r: carriage return
  • ': single quote
  • ": double quote
  • \: backslash
  1. C:
  • \n: newline
  • \t: tab
  • \r: carriage return
  • ': single quote
  • ": double quote
  • \: backslash
  • \a: alert (bell)
  • \b: backspace
  • \f: form feed
  • \v: vertical tab
  • \0: null character
  1. C++:
  • Same as C, with additional escape sequences:
  • ? : question mark
  • \xhh : hexadecimal value
  • \ooo : octal value
  1. Rust:
  • \n: newline
  • \t: tab
  • \r: carriage return
  • ': single quote
  • ": double quote
  • \: backslash
  1. Lisp:
  • Lisp uses a different syntax for strings and characters, so there are no escape sequences.
  1. Perl:
  • Same as C, with additional escape sequences:
  • \e: escape character
  • \s: whitespace character
  • \w: word character
  • \d: digit character
  • \xhh: hexadecimal value
  • \ooo: octal valu
shell C C++ rust lisp perl 中转义字符

原文地址: https://www.cveoy.top/t/topic/eb8Y 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录