- a = 'a'
- print( a <'b' and 'c') # and 同真取最后一个真 ----c
- print( a> 'b' and 'c') # and 有假取第一个假 ----False
- print( a> 'b' or a == 'c') #or 同假取最后一个假 ---False
- print( a> 'b' or 'c') # or 有真取第一个真 ---c
- #and, 同真取最后一个真, 有假取第一个假.
- #or, 同假取最后一个假, 有真取第一个真. not, 取反.
来源: http://www.bubuko.com/infodetail-3355886.html