Python and or not 优先级 not > and >or 1 or 5 and 4: -> 1 or 4-> 1 (1 or 5) and 4: ->1 and 4 ->4 x or y . x为真就是x, x为假就是y x and y . x为真就是y, x为假就是x