python 0==False运行结果

python中0==false的输出是成立的。再python里面,int0,float0.0空列表,空字典,空元组,等都会算为False。所以如果是判断是否为False,要写is,不能写==False,或者简写。