Python

ph
Admin (토론 | 기여)님의 2017년 4월 4일 (화) 04:11 판 (새 문서: ==<code>is</code> and <code>==</code>== <code>is</code> is identity testing, <code>==</code> is equality testing. what happens in your code would be emulated in the interpreter like t...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색

is and ==

is is identity testing, == is equality testing. what happens in your code would be emulated in the interpreter like this:

>>> a = 'pub'
>>> b = .join(['p', 'u', 'b'])
>>> a == b
True
>>> a is b
False

[1]