if no 和 if not

x = None

 if  x is not None:
     print("kong")

if  not x is not None:
    print("kong")
# if not XXX就是 =    if XXX ==0
# if XXX 就是= if XXX !=0

暂且只能这么理解 if  x is not None

if  x is not None

posted @ 2017-08-05 19:52  滴滴滴  阅读(947)  评论(0编辑  收藏  举报