가능한 중복 :파이썬에서 연산자
는>>> a = "1234" >>> b = "1234" >>> a is b True >>> a = "12 34" >>> b = "12 34" >>> a is b False
사람이 나를 설명 할 수 :
나는에 대한 질문이
Python “is” operator behaves unexpectedly with integers
How is the 'is' keyword implemented in Python?
파이썬에서 연산자 "입니다" 왜 그렇게 되니? 또한 나는 이해할 수 없다, 그것은 "연산자"가 객체의 메모리 주소만을 비교할 필요가 있다고 말하면 "a is b"라는 표현이 참입니까?
이것은 여기에 자세하게 설명되어 있습니다. http://stackoverflow.com/questions/306313/python-is-operator-behaves-unexpectedly-with-integers – Yuushi
여기에 또 다른 [http : // stackoverflow. com/questions/2987958/how-is-the-is-of-python] (http://stackoverflow.com/questions/2987958/how-is-the-is-keyword-implemented-in-python) – Matt