0 值的整型 / 浮点型、空字符串('')、空列表([])、 空元组((,))、空字典({})、空集合(set())都等价于 False,但是不等于 None
thing = None if thing: print("It's some thing") else: print("It's no thing") if thing is None: print("It's no thing") else: print("It's some thing")