字典 成语 英汉词典
 
全站
导航
字典 成语 英汉词典
ternary operator

单词 ternary operator

音标 英式发音 美式发音

释义

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

时间: 2026-11-03 04:54:44

ternary operator 双语例句

全部


1·So be sure to ponder your reasons when choosing the ternary operator.

所以在挑选三元运算符时,请务必权衡一下利弊。

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

这个新操作符实际上是一个三目操作符的便捷记法。

3·For Java developers, this is exactly the way the ternary operator — the? : expression — works.

表达式——的工作方式。

4·The second occurrence of the name variable is simply omitted and the ternary operator is no more ternary and is shortened to this more concise form.

name变量的第二次出现被简单的忽略了,三目操作符不再是三目的了,缩短为这种更简明的形式。

5·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 要简洁多了。

6·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()),亦或是包含布尔逻辑或三目运算符的复杂表达式。

7·Avoid using the ternary conditional operator.

避免使用3元条件运算符。

Albertus Magnus是什么意思
Albertus Magnus是什么意思
汉词网为您提供Albertus Magnus是什么意思,Albertus Magnus的用法,Albertus Magnus的词性,Albertus Magnus的词根,Albertus Magnus短语搭配,Albertus Magnus真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
gird up one's loins是什么意思
gird up one's loins是什么意思
汉词网为您提供gird up one's loins是什么意思,gird up one's loins的用法,gird up one's loins的词性,gird up one's loins的词根,gird up one's loins短语搭配,gird up one's loins真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
odds-on是什么意思
odds-on是什么意思
汉词网为您提供odds-on是什么意思,odds-on的用法,odds-on的词性,odds-on的词根,odds-on短语搭配,odds-on真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
google chrome是什么意思
google chrome是什么意思
汉词网为您提供google chrome是什么意思,google chrome的用法,google chrome的词性,google chrome的词根,google chrome短语搭配,google chrome真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
hold a candle to the sun是什么意思
hold a candle to the sun是什么意思
汉词网为您提供hold a candle to the sun是什么意思,hold a candle to the sun的用法,hold a candle to the sun的词性,hold a candle to the sun的词根,hold a candle to the sun短语搭配,hold a candle to the sun真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
Carry On Pickpocket是什么意思
Carry On Pickpocket是什么意思
汉词网为您提供Carry On Pickpocket是什么意思,Carry On Pickpocket的用法,Carry On Pickpocket的词性,Carry On Pickpocket的词根,Carry On Pickpocket短语搭配,Carry On Pickpocket真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
component video是什么意思
component video是什么意思
汉词网为您提供component video是什么意思,component video的用法,component video的词性,component video的词根,component video短语搭配,component video真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
indicating bell是什么意思
indicating bell是什么意思
汉词网为您提供indicating bell是什么意思,indicating bell的用法,indicating bell的词性,indicating bell的词根,indicating bell短语搭配,indicating bell真题例句等功能,学习单词超轻松。
查看完整内容
[11-03]
  • Copyright © 2009-2024 www.mytentv.com 汉词 . All Rights Reserved. 渝ICP备2024018624号-1
  • 汉词,中小学生必上的网站,部分资料来源于网友提供,如有侵权,请与我们联系删除!邮箱:xhy_gz@163.com