码迷,mamicode.com
首页 > 其他好文 > 详细

if no 和 if not

时间:2017-08-05 20:28:43      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:color   ==   style   one   理解   blog   not   pre   nbsp   

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

妈个比,骂一下python这个混蛋理解

if no 和 if not

标签:color   ==   style   one   理解   blog   not   pre   nbsp   

原文地址:http://www.cnblogs.com/gaoyuechen/p/7291223.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!