你怎么说不等于?
喜欢
if hi == hi:
print "hi"
elif hi (does not equal) bye:
print "no hi"
是否有等同于==
“不平等”的东西?
注意<>在python 3中不再起作用,因此请使用!=
—
Antonello
来自python文档:
—
hamed
Python3 : The operators <, >, ==, >=, <=, and != compare the values of two objects.
docs.python.org/3/reference/expressions.html#value-comparisons
来自python文档:
—
hamed
python2:
docs.python.org/2/reference/expressions.html#not-in
else
,!=
(可选<>
)或is not
?