(Python3)Boolean(布尔)类型

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011978079/article/details/89468614

布尔运算有三种:and, or, not

x or y x为假时,则求y值 , 否则求x值 
x and y x为假时,则求x值, 否则求y值 
not x x为假时,则返回真,否则返回假

猜你喜欢

转载自blog.csdn.net/u011978079/article/details/89468614