所以我想写这个:
if x % 2 == 0 or x % 3 == 0 or x % 5 == 0 or x % 7 == 0:
但是这样:
if x % (2 or 3 or 5 or 7) == 0:
我该如何以正确的方式写出来?
python if-statement python-3.x
if-statement ×1
python ×1
python-3.x ×1