Herhangi bir kelime yazın!

"boolean" in Chinese (Simplified)

布尔型布尔值

Definition

指只能有两个值的数据类型:真或假。常用于计算机科学、逻辑和编程中。

Usage Notes (Chinese (Simplified))

几乎只用于技术和编程环境。通常修饰'变量'、'值'等名词——如“布尔变量”。日常口语极少见。

Examples

A boolean variable can only be true or false.

一个**布尔型**变量只能为真或假。

In programming, 'isOn' is a common boolean.

在编程中,'isOn' 是常见的**布尔值**。

A boolean answer is either yes or no.

**布尔型**答案就是“是”或“否”。

Make sure your function returns a boolean so the test works properly.

确保你的函数返回**布尔值**,这样测试才能正常运行。

You need a boolean expression to use in this if-statement.

你需要一个**布尔表达式**放在这个if语句里。

Don’t forget—'==' returns a boolean, not a number!

别忘了,'==' 返回的是**布尔值**,不是数字!