not表示取反啊,相当于C语言中的非(!),例如:
# 因为x为True,所以输出结果为1x = Trueif x: print 1else: print 2
# 因为x为True,not x 就是False了,所以输出结果为2x = Trueif not x: print 1else: print 2