Open creamidea opened 10 years ago
what is different between 'is' and '=='
you should pay more attention to this:
a = 19998989890 b = 19998989889 +1 >>> a is b False >>> a == b True
so, you know. The 'is' has more strict matching than '=='
Reference: http://stackoverflow.com/questions/2988017/string-comparison-in-python-is-vs
what is different between 'is' and '=='
you should pay more attention to this:
so, you know. The 'is' has more strict matching than '=='
Reference: http://stackoverflow.com/questions/2988017/string-comparison-in-python-is-vs