标签: python python-3.x
在python中,可以使用魔术方法HELLO WORLD! 和|覆盖按位OR运算符&和按位AND运算符__or__(self, other)。
HELLO WORLD!
|
&
__or__(self, other)
是否有任何方法可以覆盖逻辑AND运算符__and__(self, other)和逻辑OR运算符and? (即在or,True and False中)
__and__(self, other)
and
or
True and False