我严重睡眠不足,我需要帮助重写这个小的Python逻辑
for _ in range(100): if a: continue elif b: continue elif c and d: continue else: e()
我希望有类似的东西
if (some_exprt of a,b,c,d): e()
我得到的是:
if not a and not b and (not c or not d): e()
但是我真的不知道这是否正确,我是对的吗?