In Boolean judgment , except 0 outside , Any other number is True
print(0 and 5) # 0
print(1 and 5) # 5
print(0 or 6) # 6
print(1 or 6) # 1
In Boolean operations ,False The corresponding is 0,True The corresponding is 1.
print(True - False) # 1
print(False - True) # -1