In the final example the value of the HOME variable is tested to see if it is a directory using the-d unary operator .
在最后一个示例中,测试HOME变量的值,用 单 目 操作符 -d检查它是不是目录。
This unary / binary global operator can only have one or two parameters
此 一 元/二进制全局 运算符只能具有一个或两个参数
The unary - ( minus ) operator yields the negation of its numeric argument .
一 元 运算符-(减)对其数值型 操作 数 取负。
Defining this unary operator in Scala is slightly tricky but it 's purely a syntactic nit
在Scala中定义这种 一 元“ 操作符”需要 一点技巧,但这只是语法上的问题而已
Unary minus operator applied to unsigned type result still unsigned
一 元负 运算符应用于无符号类型,结果仍为无符号类型
A unary operator such as Minus is left as an exercise .
像负号这样的一 元 运算符就留给 读者练习。
The parameter of a unary operator must be the containing type
一 元 运算符的参数必须是包含类型
The unary operator-z tests for a null string while-n or no operator at all returns True if a string is not empty .
单 目 操作符-z测试null字符串,如果字符串非空-n返回True(或者根本没有 操作符)。
一元运算符