在Python中!= vs <>?

tkb*_*kbx 1 python math comparison

我之前正在阅读Python文档,我发现了<>.这究竟有!=什么不同?据我所知,唯一的区别是<>不能用字符串.是否<>做一些特别的东西!=没有,或者有没有我还没有听说过两年多了一个理由吗?

dmg*_*dmg 5

<>是过去的遗迹.引用文档

!= can also be written <>, but this is an obsolete usage kept for backwards compatibility only. New code should always use !=.

另外,值得注意的是Python 3不支持<>.