the-swift-programming-language-in-chinese icon indicating copy to clipboard operation
the-swift-programming-language-in-chinese copied to clipboard

swift教程/字符串与字符

Open Wizard23333 opened this issue 3 years ago • 2 comments

原文:The escaped special characters \0 (null character), \ (backslash), \t (horizontal tab), \n (line feed), \r (carriage return), " (double quotation mark) and ' (single quotation mark) 译文:转义字符 \0(空字符)、\(反斜线)、(水平制表符)、(换行符)、(回车符)、"(双引号)、'(单引号)。

使用google翻译有概率复现相同的错误

Wizard23333 avatar Jun 29 '22 08:06 Wizard23333

原文:For example, printing the string literal #"Line 1\nLine 2"# prints the line feed escape sequence (\n) rather than printing the string across two lines. 译文:例如,打印字符串文字 #"Line 1 \nLine 2"# 会打印换行符转义序列()而不是给文字换行。

一样的问题,转义字符被翻译漏了

Wizard23333 avatar Jun 29 '22 08:06 Wizard23333

@Wizard23333 欢迎提交 PR

SwiftSIQI avatar Sep 29 '23 05:09 SwiftSIQI