在本例中,使用换行字符符号生成了一种“多行”提示符。
In this example, the newline character token is used to generate a kind of "multi-line" prompt.
这使print语句打印字符值时后面跟着空格字符,而不是换行字符。
This makes the print statement print out the character value, followed by a space character instead of a newline character.
它利用的是有关原子数据平面结构、元素之间换行字符的存在以及其他特性的特殊知识。
It exploits special knowledge about the flat structure of the atom data, the existence of newline characters between elements, and other characteristics.
由其名称可以明显看出,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.
保留字符内容中的所有空白(不包括换行规范化过程中删除的字符)。
All whitespace in character content is retained (excluding characters removed during line feed normalization).
移除东亚字符之间的换行符。
Linefeed characters between East Asian characters are removed.
对文本模式的文件,回车换行作为一个字符。
For text-mode files, carriage return–linefeed pairs are counted as single characters.
不一定指那些在屏幕上可见的文本,还包括如换页换行符、段分隔符和图形字符等等。
Not always visible as text on the screen. For instance, includes page and line breaks, paragraph delimiters and picture characters.
换行符算作一个字符。
注意,\字符表示用于格式化目的的换行符。
Note that the \ characters are to indicate a line break for formatting purposes.
要知道甚至这个测试都有缺点,因为它假定短语包括空格并且可以自动换行;但对于一些基于非拉丁字符的语言,情况并非如此。
Recognize that even this test has a weakness, since it assumes that phrases will include spaces and can word wrap; this is not true for some non-Latin character-based languages.
例如,如果您想要导出一些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.
防止在双倍宽度字符的字符串中出现分行符,以使此换行规则等效于单倍宽度字符的字符串。
Prevents a line break at a double - wide character string, so that the line - breaking rule is equivalent to single - wide character strings.
仔细研究二者的差别,尤其要注意加引号的形式和包含空白(如空格字符和换行符)的参数。
Study the differences carefully, particularly for the quoted forms and the parameters that include white space such as blanks or newline characters.
在Python版本2. x中,raw _ input会从标准输入(sys . stdin)读取一个输入并返回一个字符串,且尾部的换行符从末尾移除。
In Python version 2.x, raw_input reads an input from standard input (sys.stdin) and returns a string with the trailing newline character stripped from the end.
标志是用来控制替换行为的单个字符。
The flags are single characters that control the substitution's behavior.
正如清单3中所阐述的,多余的字符要么换行要么截断。
As illustrated in Listing 3, the additional characters can either be wrapped or truncated.
s——空白字符,如制表符或换行符。
您可以将输出显示为八进制、十六进制、十进制、浮点数、包含反斜杠转义符的ASCII,或者指定的字符(nl表示换行、ht表示水平制表符,等等)。
You can display output as octal, hex, decimal, floating point, ASCII with backslash escapes, or named characters (nl for newline, ht for horizontal TAB, etc.).
不可见字符。如控制符、回退删除符、换行符等。
A character with no visible representation, such as a control character, a backspace, newline, and so on.
从内部机制看,在创建字符串时换行符会被忽略,在打印字符串时可以看出这一点。
Internally, the newline character is ignored when creating the string, as is shown when the string is printed.
前跟转义字符用于表示换行符的字符。
The character which when preceded by an escape character represents the newline character.
关注平台的特定通讯特征,如换行和缓冲以及Unicode字符转换。
Pay close attention to platform specific communications characteristics such as line feeds and buffering and the conversion of Unicode characters.
然后,它使用空格替换换行、下划线和连字符。
Then it replaces line breaks, underscores, and hyphens with blanks.
虽然结果看上去是52行,但实际上只是一个包含了很多换行符的一个长字符串。
Even though the result appears on 52 lines, it is one long string that contains newlines.
用一个空格或一个给定字符替换所有重复空格、换行和制表符。
This replaces all repeated Spaces, newlines and tabs with a single space, or with a supplied string.
但您不知道单词由什么分隔,是空格、换行符、制表符还是这些字符的组合。
But you don't know whether the words are separated by Spaces, line breaks, tabs, or some combination of these.
但您不知道单词由什么分隔,是空格、换行符、制表符还是这些字符的组合。
But you don't know whether the words are separated by Spaces, line breaks, tabs, or some combination of these.
应用推荐