Bootstrap

python中非0即True,0即False

print(not 0)
print(not 1)
print(not 2)
print(not -2)
print(0 == False)

执行结果:

True
False
False
False
True
;