Python中if x&if x is not none
https://zhuanlan.zhihu.com/p/80369221
python代码if not x:
和if x is not None:
和if not x is None:
使用
https://blog.csdn.net/sasoritattoo/article/details/12451359
python 中 is, is not ,==, != 的区别
https://blog.csdn.net/u012995500/article/details/82764128
if not x: 判断x是不是False。None, False, 空对象都是False。如果x是False,返回True
if x is not None: 判断x是不是None,若不是None,返回True
if a is not b:判断两个变量的内存地址是否相等,若不相等,返回 True
if a != b:判断两个变量值是否相等,若不相等,返回 True