python3 is not None

时间:2021-09-01 17:50:51   收藏:0   阅读:4

>>> True is not None
True
>>> 1 is not None
True
>>> ‘http:ww.ww.ww‘ is not None
True
>>> [1] is not None
True
>>> [] is not None
True
>>> () is not None
True
>>> ‘‘ is not None
True
>>> {} is not None
True
>>> 0 is not None
True
>>> None is not None
False

原文:https://www.cnblogs.com/bk-xiaowei/p/15208077.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!