用法:
all(iterable)
如果
iterable
的所有元素都為真(或者如果迭代為空),則返回True
。相當於:def all(iterable): for element in iterable: if not element: return False return True
相關用法
- Python all()用法及代碼示例
- Python ast.MatchClass用法及代碼示例
- Python abc.ABCMeta用法及代碼示例
- Python ast.ListComp用法及代碼示例
- Python ast.Lambda用法及代碼示例
- Python asyncio.BaseTransport.get_extra_info用法及代碼示例
- Python ast.IfExp用法及代碼示例
- Python unittest assertNotIsInstance()用法及代碼示例
- Python ast.Return用法及代碼示例
- Python Tkinter askopenfile()用法及代碼示例
- Python ast.Subscript用法及代碼示例
- Python asyncio.shield用法及代碼示例
- Python asyncio.run用法及代碼示例
- Python argparse.ArgumentParser.convert_arg_line_to_args用法及代碼示例
- Python unittest assertIsNotNone()用法及代碼示例
- Python unittest assertFalse()用法及代碼示例
- Python asyncio.wait_for用法及代碼示例
- Python abc.abstractmethod用法及代碼示例
- Python any用法及代碼示例
- Python asyncio.create_task用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 all。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。