摘要: 代码中经常会有变量是否为None的判断,有三种主要的写法: 第一种是'if x is None'; 第二种是 'if not x:'; 第三种是'if not x is None'(这句这样理解更清晰'if not (x is None)') 。通常不怎么使用这种判断 在python中 None, 阅读全文
posted @ 2019-04-19 21:46 吃汤圆啦i 阅读(638) 评论(0) 推荐(0) 编辑