你怎么说不相等?
喜欢
if hi == hi:
print "hi"
elif hi (does not equal) bye:
print "no hi"
Run Code Online (Sandbox Code Playgroud)
有没有相当于=="不平等"的东西?
我正在尝试在Python 3.3中使用一个旧库(可追溯到2003年!).当我导入它时,Python会抛出一个错误,因为<>源文件中有迹象,例如:
if (cnum < 1000 and nnum <> 1000 and ntext[-1] <> "s":
...
Run Code Online (Sandbox Code Playgroud)
我想这是一个现在被遗弃的语言标志.
究竟是什么意思,我应该用哪个(更近期的)标志替换它?