all():可迭代对象,有一个为假(为空),那么则返回False,全为真,才返回True
def all(*args, **kwargs): # real signature unknown
"""
Return True if bool(x) is True for all values x in the iterable.
If the iterable is empty, return True.
"""
pass


any():接收的可迭代对象,只要有真,则返回True,全为假(全为空),才返回False
def any(*args, **kwargs): # real signature unknown
"""
Return True if bool(x) is True for any x in the iterable.
If the iterable is empty, return False.
"""
pass


注意:

返回的结果是True
793

被折叠的 条评论
为什么被折叠?



