有没有办法有效地做:
if operator != ('+' or '-' or '*' or '/'):
无需做
operator != '+' and operator != '-' and operator != '*'
python
python ×1