x = a or b 等价于 x = if (!a) b else a x = a and b 等价于 x = if (!a) a else b x = a and b or c 等价于 x = if (a) b else c 上面的 a,b,c 指代的是,返回值为布尔值的函数