注意,最初的 “最小字符数”子模式和运算符子模式都在捕捉圆括号内进行了指定:\(...\)。
Note that both the initial "minimal number of characters" subpattern and the operator subpattern are specified within capturing parentheses: \(...\).
随后将运算符本身(submatch(2))右对齐(使用 %*s)到第二个字段,其字符宽度为 max_op_width。
It will then right-justify (using a %*s) the operator itself (submatch(2)) into a second field that's max_op_width characters wide.
从设计的角度看,有些其他的选择是有问题的;例如,使用字符串来承载运算符就有可能出现小的输入错误,最终会导致结果不正确。
From a design perspective, some other choices are questionable; for example, the use of Strings to hold the operators opens up the possibility of small typos leading to erroneous results.
第一,通过将其他字符串添加在一起,可以创建新的字符串,具体方法可以使用+运算符,或者干脆使用适当的引号将字符串连在一起。
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.
我们的平台上的发现模式能够提供广泛的运算符、逻辑运算符、通配符字符串搜索等。
Find mode on our platform can accommodate logical a wide array of operators, logical operators, wildcard string searches, etc.
强烈推荐对所有字符串比较使用“显式设置大小写的”运算对象,因为这样可以确保无论用户选项设置如何变化,脚本都可以可靠地执行。
Using the "explicitly cased" operators for all string comparisons is strongly recommended, because they ensure that scripts behave reliably regardless of variations in the user's option Settings.
第二,如果需要重复短字符串来创建长字符串,可以使用 *运算符,将字符串重复一定的次数。
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.
以后你们还会学到更多,你会学到字符串,不仅仅能运用标准数值运算,你还可以对他们求长度,或者加上其他的东西。
You're going to get a chance to explore them, and you'll see not only are there the standard numerics for strings, there are things like length or plus or other things you can do with them.
由于所有字符数据都是字符串,因此Net . Data将使用内置函数来对表示有效数字(包括用指数形式表示的数字)的字符串执行算术运算。
Because all character data is a string, Net.Data USES built-in function to perform arithmetic operations on a string that represents a valid number, including those in exponential formats.
操作符,例如+,是一个字符(或者有时候是一小串字符)指明了运算种类。
An operator, such as the + sign, is a character (or sometimes a short sequence of characters) that indicates a computational operation. In an expression, a term must be one of the following.
由于关注浮点运算的执行,我们打算用一种规格化因素将这20字符统计分开来,并以此培训我们的网络。
For reasons that concern the implementation of floating point arithmetic, we decided to train our net with these twenty counts divided by a normalizing factor.
使用 PreparedStatement 的那种代码片段在编码方面更为优雅,因为在将STATE和TYPE的值置入SQL语句时,不需要进行字符串运算。
The variant with the PreparedStatement is more elegant regarding the coding, as no string arithmetic is required to put the values for STATE and TYPE in the SQL statement.
特别是,如果一个运算对象是字符串,另一个是数字,那么字符串将被转换为数字,然后再对两个数字进行数值比较。
In particular, if one operand is a string and the other a number, the string will be converted to a number and the two operands then compared numerically. This can lead to subtle errors.
惟一的区别就是它使用Jython字典来保存String模板里的名称-值对,并使用%运算符来将该模板转换为有意义的sql字符串。
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内置字典的字符串格式化与c中printf的一样强大,我们可以使用%运算符来关联字典。
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.
格式运算符:%运算符,处理字符串和元组,然后生成一个包含元组中元素的字符串,根据给定的格式字符串进行格式化。
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.
一般情况下,咱们不能对字符串进行数学运算的,即使字符串看上去像是数字也不行,所以以下这些都是非法操作。
In general, you can't perform mathematical operations on strings, even if the strings look like Numbers, so the following are illegal.
和字符串不同的是,列表是可以修改的。方括号运算符放到一个赋值语句的等号左侧的时候,就会把对应位置的列表元素重新赋值。
Unlike strings, lists are mutable. When the bracket operator appears on the left side of an assignment, it identifies the element of the list that will be assigned.
格式字符串:用于格式运算符的一个字符串,内含格式序列。
A string, used with the format operator, that contains format sequences.
第一个运算对象也就是说明格式的字符串,包含一个或者更多的格式序列,规定了第二个运算对象的输出格式。返回的结果就是格式化后的字符串了。
The first operand is the format string, which contains one or more format sequences, which specify how the second operand is formatted. The result is a 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.
表达式必须有整数类型并且只能包括整数常量,字符常量,以及定义了的运算符。
Expressions must have integral type and can include only integer constants, character constants, and the defined operator.
运算符认为该单个二合字母字符与这两个单独的字符是等效的。
Operator recognizes that the single digraph character and the two individual characters are equivalent.
新算法有效地克服了噪声的影响,运算复杂度低,因而能够实现对强干扰噪声图像中的字符串的实时定位。
The algorithm effectively overcomes the influence of noise and has low computation cost, so it can be used for real-time text string location in images with noise.
对于数可使用标准算术运算符,对于组合字符串可使用串联运算符。
Use standard arithmetic operators for Numbers and a concatenation operator for combining strings.
串联运算符将多个字符串联接为一个字符串。
Concatenation Operators join multiple strings into a single string.
函数的作用是:用自然运算法则比较字符串(大小写敏感)。
The strnatcmp() function compares two strings using a "natural" algorithm.
和别的工具箱有所不同,该工具箱不是基于矩阵的数值分析,而是使用字符串来进行符号分析与运算。
And different from other toolbox, the toolbox is not based on numerical analysis matrix, but use a string for symbolic analysis and calculation.
表达式可以由数学计算或字符串组成,也可以包含列名、文本、运算符或函数的任意组合。
An expression can consist of a mathematical calculation or a string, and can involve any combination of column names, literals, operators, or functions.
表达式可以使用在常数值、命令的退出代码、字符串、宏和文件系统路径上使用的运算符。
Expressions can use operators that act on constant values, exit codes from commands, strings, macros, and file-system paths.
应用推荐