De Morgan's Law

Can be used in conditional statements to
Insert picture description here
judge all or none

(bool(a and b and c) or not bool(a or b or c))

# 均无的话是true
not bool(a or b or c) == not(bool(a)) and not(bool(b)) and not(bool(c))

Guess you like

Origin blog.csdn.net/qq_42648305/article/details/111922736
law