代码中经常会有变量是否为None的判断,有三种主要的写法:第一种是if x is None;第二种是if not x:;第三种是if not x is None(这句这样理解更 ...
確定! 回上一頁