python is not None

python  判空常用 XX is not None,但其实 not  XX is None 也可以。

http://stackoverflow.com/questions/2710940/python-if-x-is-not-none-or-if-not-x-is-none

posted on 2013-08-21 23:14  代码王子  阅读(293)  评论(0编辑  收藏  举报

导航