例如,如果您想要导出一些Wiki页面,您会希望保留一些字符的原始位置,如回车符和换行符,因为这些字符在wiki格式中有特殊的作用。
For example, if you export Wiki pages, you will want to retain the exact positions of characters like return and line-feed because those are given special attention in the Wiki format.
由其名称可以明显看出,display是打印出参数的函数,而newline是只打印出一个回车换行字符的函数。
As is obvious from their names, display is a function that prints out its argument and newline is a function that simply prints out an end-of-line character.
对文本模式的文件,回车换行作为一个字符。
For text-mode files, carriage return–linefeed pairs are counted as single characters.
应用推荐