go top

ternary operator

  • 三元运算符:在许多编程语言中使用的一个运算符,根据第三个值选择两个值中的一个。

网络释义专业释义

短语

ternary operator 三元运算子 ; 三元运算符 ; 三目运算符

Ternary Conditional Operator 三元条件运算符 ; 三目运算符

ternary if-else operator 三元运算符

  • 三目运算符
    三进制算符
    三元运算符
  • 三元运算子
    三元运算符
    三进运算子

·2,447,543篇论文数据,部分数据来源于NoteExpress

双语例句

  • This new operator is, in fact, a shortcut notation for the ternary operator.

    这个操作实际上一个三目操作符便捷记法

    youdao

  • PHP has the ternary operator (foo?bar:baz) and an enormous (and unwieldy) list of function names, with all kinds of naming conventions; you'll find Python a lot cleaner.

    PHP 使用三元操作符foo? bar:baz和冗长函数名列表,而命名约定更是无所不有;相反,发现 Python 要简洁多了

    youdao

  • This expression can be as simple as a variable (as shown in Listing 2) or a method call (like getList()), or a complex expression that involves boolean logic or a ternary operator.

    表达式可以简单到就是变量如清单 2或者是一个方法调用(例如 getList()),亦或是包含布尔逻辑三目运算符复杂表达式。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定