复制代码def any(items): for item in items: if item: return True return False # ---all() from Python 2.5 ---