Python逻辑运算符:not、and、or 一、逻辑运算符 运算符 逻辑表达式 描述 not not x 布尔“非”。如果x为True,返回False and x and y 布尔“与”。都真才真,一假则假 or x or y 布尔“或”。都假才假,一真则真 a = 34 b = 12 print((a > b) and (a > 50