文章内容

2020/6/13 8:44:54,作 者: 黄兵

Python not运算

下面是一些not运算符:

Python 2.7 (r27:82500, Sep 16 2010, 18:02:00) 
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> True == True
True
>>> False == False
True
>>> True is not False
True
>>> True == (not False)
True


分享到:

发表评论

评论列表