假设我有类似的东西:
[(True, False, False), True] = True
或
(False, [True, True, False], False) = False
可能是无限深的,并且元组被评估为“或”并列出“与”
该函数如何用python编写?
具有all和all的解决方案:
all
any