记录与记录之间是以记录分隔符(record separator)隔开的,其缺省值是文件中的换行符(newline character),因此在缺省状态下输入数据的每一行是一个记录。
基于254个网页-相关网页
Listing 2 shows an example of using a newline character.
清单2是一个使用换行符的示例。
In this example, the newline character token is used to generate a kind of "multi-line" prompt.
在本例中,使用换行字符符号生成了一种“多行”提示符。
Internally, the newline character is ignored when creating the string, as is shown when the string is printed.
从内部机制看,在创建字符串时换行符会被忽略,在打印字符串时可以看出这一点。
应用推荐