有谁知道这实际上叫什么?
Does anyone know what this is actually called?
很长一段时间以来,我一直在想这到底叫什么,因为不久前(比如 3 年前)我认为它叫做字节码,但从那时起我就意识到字节码到底是什么了。我会举个例子,因为我真的不知道怎么称呼它。
看起来像这样:
4
。它基本上是所有字符前面加反斜杠的字节。
有人知道这叫什么吗?
谢谢。
来自Lua参考手册:
We can specify any byte in a short literal string by its numeric value
(including embedded zeros). This can be done with the escape sequence
\xXX, where XX is a sequence of exactly two hexadecimal digits, or
with the escape sequence \ddd, where ddd is a sequence of up to three
decimal digits. (Note that if a decimal escape sequence is to be
followed by a digit, it must be expressed using exactly three digits.)
另请参阅https://en.wikipedia.org/wiki/String_literal#Escape_sequences
很长一段时间以来,我一直在想这到底叫什么,因为不久前(比如 3 年前)我认为它叫做字节码,但从那时起我就意识到字节码到底是什么了。我会举个例子,因为我真的不知道怎么称呼它。
看起来像这样:
4
。它基本上是所有字符前面加反斜杠的字节。
有人知道这叫什么吗?
谢谢。
来自Lua参考手册:
We can specify any byte in a short literal string by its numeric value (including embedded zeros). This can be done with the escape sequence \xXX, where XX is a sequence of exactly two hexadecimal digits, or with the escape sequence \ddd, where ddd is a sequence of up to three decimal digits. (Note that if a decimal escape sequence is to be followed by a digit, it must be expressed using exactly three digits.)
另请参阅https://en.wikipedia.org/wiki/String_literal#Escape_sequences