标签: python string
如何使用关系运算符比较字符串?
为什么print('hello' < 'Hello')返回False。
print('hello' < 'Hello')
False
为什么print('hi' > 'hello')返回True
print('hi' > 'hello')
True
所有这些
print "flow" <= "blow" # true print "flow" <= "blow" # false print "flow" > "blow" # True print "flow" <> "blow" # True