This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
在双引号中,有些字符具有特殊的含义,而后斜切则用于“逃脱”特殊含义,即从字面上插入它们。
要输入字面的斜拉以双引号,您需要通过另一个后斜线将其逃脱,因此双引号中的后斜线表示为
\\
。在单引号中,每个角色都会从字面上解释,因此不需要逃脱角色。
In double quotes, some characters have special meaning, and a backslash is used to "escape" the special meaning, i.e. insert them literally.
To enter a literal backslash to double quotes, you need to escape it by another backslash, so backslash in double quotes is represented as
\\
.In single quotes, every character is interpreted literally, so there's no need for an escape character.