Another important set of operators in UNIX is the logical operators.
UNIX中的另一组重要操作符是逻辑操作符。
And the subexpressions can be combined using the and, or, and not logical operators.
而子表达式又可使用and、or和not逻辑运算符组合起来。
You can combine tests that are allowed for the test command using parentheses and logical operators.
可以用括号和逻辑操作符把test命令支持的测试组合起来。
The actual precedence of the logical operators is given by the order these operators are presented in Table 2.
逻辑运算符的实际优先级就是表2中罗列这些运算符的顺序。
One interesting point about the or and the and logical operators in Python is that they are both shortcut operators.
在Python 中,关于or和and 逻辑运算符有意思的是,它们都是快捷运算符。
You do this by using logical operators.
您可以使用逻辑运算子来完成这项动作。
When dealing with logical operators you run into a phenomenon called" short circuiting."
操作逻辑运算符时,我们会遇到一种名为“短路”的情况。
You can combine or modify search conditions using the standard logical operators listed in the following table.
您可以使用下表所列的标准逻辑运算子合并或修改搜寻条件。
To test a bit field to determine whether a specific enumeration value is present, use the Boolean logical operators.
若要测试位元栏位,判断特定列举值是否存在,请使用布林逻辑运算子。
If you've read any of my previous articles (see Resources), you'll notice that I favor logical operators over writing several lines of code.
如果您读过我以前的文章(参见参考资料),就会注意到我喜欢使用逻辑操作符,而不是编写多行代码。
Unless this is so, the Boolean logical operators will not be able to extract the individual enumeration values that are stored in the field.
除非情况如此,否则布林逻辑运算子就无法抽取栏位中所储存的个别列举值。
Provides links to topics such as how to use expressions in queries, what logical operators, and how to include user-defined functions in queries.
提供指向介绍如何在查询中使用表达式、在查询中可以包括哪些逻辑运算符以及如何在查询中包括用户定义函数的主题的链接。
By using a simple function like exit_msg and a few logical operators, the script could be condensed into the better-looking and easier-to-understand program shown in Listing 14.
只需使用exit_msg这样的简单函数和几个逻辑操作符,这个脚本就可以简化成更漂亮更容易理解的程序,见清单14。
You can use logical operators with test categories to run tests from multiple categories together or to limit the tests that you run to tests that belong to multiple categories.
可以在测试类别中使用逻辑运算符,从而运行来自多个类别的测试,或将运行的测试仅限于属于多个类别的测试。
The logical operators have lower precedence than the individual comparison operators, which makes sense because the comparison has to be evaluated before the logical operator can be evaluated.
逻辑运算符的优先级低于单独的比较运算符,这一点意义重大,因为必须先计算比较运算符,然后才能计算逻辑运算符。
The logical operators have lower precedence than the individual comparison operators, which makes sense because the comparison has to be evaluated before the logical operator can be evaluated.
逻辑运算符的优先级低于单独的比较运算符,这一点意义重大,因为必须先计算比较运算符,然后才能计算逻辑运算符。
应用推荐