As a result, any sequence of strings is also e. g. a sequence of objects.
其结果是,任何一个字符串序列也就是一个对象序列了。
In this way, you can set up a sequence of strings, each being one line from a file.
这样就建立了一个字符串序列,各个字符串分别对应文件中的一行。
You should also note that command-line arguments are accessed via the built-in symbol sys.argv that is a sequence of strings.
您还应当注意命令行参数是通过内置符号sys . argv访问的,它是一系列字符串。
The second split method demonstrates using a different token character -- in this case, a colon -- to split a string into a sequence of strings.
第二个split方法演示如何使用不同的令牌字符(本例中使用的是冒号)将一个字符串分成一系列字符串。
Since an ElementTree Element instance has a single.text attribute — which contains a string — that does not really leave space for a broken sequence of strings.
由于ElementTree的Element实例有一个单一的.text属性-包含一个字符串-它并不真正为断开的字符串序列保留空格。
You can also aggregate strings from a sequence of strings: the new string-join function takes a sequence as an argument, unlike concat , which takes many arguments, each being a string.
还可以通过各字符串的序列来聚合字符串,新增的string - join函数以序列为参数,这与concat有所不同,它可以有很多参数,每个参数要求是字符串。
A program can refer to elements or subsequences of strings just as with any sequence, although strings, like tuples, cannot be modified "in place."
尽管不能“按位置”修改字符串(如字节组),但程序可以引用字符串的元素或子序列,就象使用任何序列一样。
In this case, I join together a sequence of single-character strings contained in a tuple using the colon character.
在本例中,使用冒号将tuple包含的由单个字符构成的字符串序列连接在一起。
In Vimscript, a list is a sequence of scalar values: strings, Numbers, references, or any mixture thereof.
在Vimscript中,列表是标量值的序列:字符串、数字、引用或它们之间的混合。
PHP USES so-called binary strings - in PHP, a string is not a string of Unicode characters, but rather a sequence of bytes.
PHP使用所谓的二进制字符串—在php中,一个字符串并不是一个Unicode字符的字符串,而是一个字节序列。
The last example shows how to use the join method, which is the opposite of the split method, to make a big string from a sequence of smaller strings.
最后的一个例子显示如何使用join方法,该方法的作用与split方法相反,可以使多个短字符串序列形成一个长字符串。
The split method is useful because it splits a string into a sequence of smaller strings, using a token character (or any character in a given sequence of characters) as an indicator of where to chop.
split方法很有用,因为它可以将一个字符串分成几个较小的字符串序列,方法是将令牌字符(或给定字符序列中的任何字符)用作断开位置的指示器。
String.sequence (final) Gets the sequence of character between string and final (both must be 1-character strings) "0".sequence (" 9 ") returns "0123456789".
sequence (final)得到字符串和最终字符串之间的字符序列(字符串和最终字符串都必须是1个字符组成的字符串)“0 ” .sequence(“9 ”)返回“ 0123456789 ”。
XPath 2.0 introduces the concept of a sequence, which is an ordered list of zero or more values - nodes, integers, strings, and so on.
XPath 2.0引入了序列的概念,序列是一种有序列表,可以包含零个或多个值—节点、整数、字符串等等。
Strings are captured in Python with an open quote and some sequence of characters followed by a closed quote.
字符串在Python中,是以一个开引号开始,然后后面是一系列的字符,以一个尾引号结束。
Technically speaking, a regular expression is a string (that is, a sequence of characters composed of letters, Numbers, and symbols) that represents a pattern defining zero or more strings.
从技术角度而言,正则表达式是表示某种模式的字符串(也就是说,由字母、数字和符号组成的字符序列),用于定义零或更长的字符串。
Emoji are not always used as embellishments, however - sometimes, strings of the characters can themselves convey meaning in a longer sequence on their own.
然而,表情符号并不是一味只被用做修饰的,有时候成行的表情能够以更长的序列靠他们自己传达使用者的意思。
You don't see strings with commas between them, but it has the same kind of property. It is in ordered sequence of characters.
它是有序的字符序列,我们可以对字符串做同样的操作,我们也可以得到字符串中的一块。
He ran a finger of his large, muscular hand over the strings, one at a time, in sequence, and listened intently.
他用他那大而有力的手指在弦上一一滑过,一次一条弦且十分仔细的听着。
Emoji I are not always used as embellishments, however - sometimes, strings of the characters can themselves convey meaning in a longer sequence on their own.
然而,表情符号并不是一味只被用做修饰的,有时候成行的表情能够以更长的序列靠他们自己传达使用者的意思。
Emoji I are not always used as embellishments, however - sometimes, strings of the characters can themselves convey meaning in a longer sequence on their own.
然而,表情符号并不是一味只被用做修饰的,有时候成行的表情能够以更长的序列靠他们自己传达使用者的意思。
应用推荐