在python中 None, False, 空字符串"", 0, 空列表[], 空字典{}, 空元组()都相当于False ,
not None == not False == not ‘’ == not 0 == not [] == not {} == not ()
a = 1
b = [1]
c = 0
d = [0]
e = []
print(not a,not b,not c,not d,not e) # False False True False True
x =[]
y =None
print(not x,not y) # True True
print(x is None,y is None) # False True
print(not x is None,not y is None) # True False 实际是not (x is None)`
print(x is not None,y is not None) # True False
c = True
d = False
print(c is None,c is None) # False False