
好词典

源自19世纪英国数学家 George Boole 的名字,他创立了布尔代数(Boolean algebra)。
❶ 指与布尔代数或逻辑运算相关的,通常用于表示只有两种可能值(如真/假、是/否)的数据类型或变量。
“The function returns a boolean value of true or false.”
(该函数返回一个布尔值,真或假。)
“Boolean logic is fundamental in computer programming.”
(布尔逻辑是计算机编程的基础。)
boolean operator — 指在逻辑运算中使用的操作符,如 AND、OR、NOT,用于组合或修改布尔值。
“You can combine conditions using boolean operators like AND and OR.”
(你可以使用 AND 和 OR 这样的布尔运算符来组合条件。)
boolean expression — 一种计算结果为布尔值(真或假)的表达式,常用于编程中的条件判断。
“The if statement checks a boolean expression to decide which branch to execute.”
(if 语句检查一个布尔表达式来决定执行哪个分支。)