First, you can create a new string by adding other strings together, either using the + operator or by just sticking strings together using the appropriate quotes.
第一,通过将其他字符串添加在一起,可以创建新的字符串,具体方法可以使用+运算符,或者干脆使用适当的引号将字符串连在一起。
To concatenate multiple String literals, use the + operator.
可以使用+操作符连接多个字符串字面值。
Second, if you need to repeat a small string to create a bigger string, you can use the * operator, which multiplies a string out a set number of times.
第二,如果需要重复短字符串来创建长字符串,可以使用 *运算符,将字符串重复一定的次数。
The only difference is the use a Jython dictionary to hold name, value pairs within a String template while use % operator to evaluate this template into a String of meaningful SQL.
惟一的区别就是它使用Jython字典来保存String模板里的名称-值对,并使用%运算符来将该模板转换为有意义的sql字符串。
With Jython's built in dictionary based String formatting which is as powerful as printf in c, we can associate a dictionary using the % operator.
基于Jython内置字典的字符串格式化与c中printf的一样强大,我们可以使用%运算符来关联字典。
To enter a String value using the equals operator, type directly into the value field.
在使用equals操作符时,在Value框中直接输入字符串值。
Optionally, you can pass a string to preg_quote() to automatically escape any regex operator it finds, as in line 1.
您可以随意将字符串传递给 preg_quote()来自动转义它找到的所有regex操作符,如第 1行所示。
The regex operator | (vertical bar) is the alternation, so this|that matches either the string this or the string that.
regex操作符 |(竖线)表示备选项,因此this|that匹配字符串 this或字符串 that。
To parse a string, you must use +alpha_p (this is similar to the EBNF + operator that implies one or more, except that Spirit uses it before and not after).
要解析字符,必须使用 +alpha_p(这类似于EBNF +操作符,表示一个或多个字符,不同的是Spirit在前面而不是后面使用它)。
If you prefer not to use a long string concatenation statement like this, an alternative is to use the string formatting operator which enables you to have an expression like.
如果不喜欢使用这么长的字符串连接语句,另一种方法是使用字符串格式操作符,可以使用下面这样的表达式。
To enter a String value using the like operator, type directly into the value field using the % character as a wild card for a text pattern.
在使用like 操作符时,在Value框中直接输入字符串值并使用 %字符作为文本模式的通配符。
A string, used with the format operator, that contains format sequences.
格式字符串:用于格式运算符的一个字符串,内含格式序列。
It is tempting to use the operator on the left side of an assignment, with the intention of changing a character in a string. For example.
大家总是有可能想试试把方括号在赋值表达式的等号左侧,试图去更改字符串中的某一个字符。比如。
An operator, %, that takes a format string and a tuple and generates a string that includes the elements of the tuple formatted as specified by the format string.
格式运算符:%运算符,处理字符串和元组,然后生成一个包含元组中元素的字符串,根据给定的格式字符串进行格式化。
An alternative is to use the format operator, %. When applied to integers, % is the modulus operator. But when the first operand is a string, % is the format operator.
另外一个方法就是用格式运算符,也就是百分号%。在用于整数的时候,百分号%是取余数的运算符。但当第一个运算对象是字符串的时候,百分号%就成了格式运算符了。
The operator [n:m] returns the part of the string from the "n-eth" character to the "meth" character, including the first but excluding the last.
这种操作符,会返回字符串中从第『n』个到第『m』个的字符,包含开头的第『n』个,但不包含末尾的第『m』个。
The "matches" operator is only implemented for protocols and for protocol fields with a text string representation.
“matches”操作符只能应用于协议或者字符串类型的协议字段。
You then use the addition operator overload to combine the namespace with the local name, expressed as a string.
然后,您可以使用加法运算子多载来结合命名空间与本机名称 (以字串表示)。
You then use the addition operator overload to combine the namespace with the local name, expressed as a string.
然后,您可以使用加法运算子多载来结合命名空间与本机名称 (以字串表示)。
应用推荐