📌  相关文章
📜  python <> - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:32.980000             🧑  作者: Mango

代码示例2
a = 1
b = 2

if a != b:
 print("Dunno")

if a <> b:
 print("Dunno")


above mentioned code are same As described in the documentation, 
they are the same. <> is deprecated and was removed in Python 3, 
so you should use !=

https://docs.python.org/2/reference/expressions.html#not-in