标签: python基础 any函数

后浪云Python教程:python中any函数如何使用?

在python中,如果想要判断一个tuple或者list是否全部为空、0、False,可以使用any函数。使用any函数,当全为空、0、False,会返回False;当不全为空、0、Fals……