When to use `<>` and `!=` operators?

后端 未结 2 1526
有刺的猬
有刺的猬 2021-01-24 01:11

Couldn\'t find much on this. Trying to compare 2 values, but they can\'t be equal. In my case, they can be (and often are) either greater than or less than.

Should I use

2条回答
  •  渐次进展
    2021-01-24 01:59

    Just stick to !=.

    <> is outdated! Please check recent python reference manual.

提交回复
热议问题