1.数字0:False,其他True 2.Dictionary{}、Tuple()、List[]:空:False,非空:True 代码举例 列表 a = [] if a: print("List is not empty") else: print("List is empty") 输出 List is empty a