So, when in doubt, if you're having some weird character issue, odds are you need to escape it in some way.
如果你有拿不准的字符,可能就要用到转义字符了。
It gets really kind of trippy if you wanna output a backslash, \ you can't just use the backslash, \\ you need to use backslash backslash because otherwise a single backslash is confused with the so called escape character.
如果你想输出一个反斜杠,估计又得迷糊了,实际上,你不能直接用,而是要,否则一个\可能会被误认为,是转义字符。
If you want to escape certain characters, you need to use these so-called escape sequences.
如果你想与其他字符隔开,你就要用到所谓的转义字符。
But there're others, backslash T. Folks in the consulting world and finance world like to share files in Excel format or in Text format that looks like Excel.
还有一些其他的转义字符,譬如\t,顾问界,财政界的,人们很喜欢用Excel文档,或类似于Excel的文本文件。
So you have what are called escape characters like backslash N that is the shorthand notation of telling the computer put a new line character here.
幸亏我们有一些类似反斜杠n的转义字符,这只是一种简化方式,用来告知电脑要在这新添一行。
应用推荐