Login  |  Register

python代码`if not x:` 和`if x is not None:` …

2013-10-8 · 代码中经常会有变量是否为None的判断,有三种主要的写法: 第一种是`if x is None`;第二种是 `if not x:`;(非常容易出错的方式,一定不要养成这样写的习惯 ...

Alexa Traffic


Listing Links