2007-04-13 Pythonの非等号 Python Pythonの非等号(not equal)は<>でも!=でも可。リファレンスマニュアルの推奨は!=。 >>> 1 <> 0 True >>> 1 != 0 True Python リファレンスマニュアル 2.5 演算子 (operator)