<分区> 分区>
Possible Duplicate:
Python “is” operator behaves unexpectedly with integers
我正在学习 Python,并且很好奇为什么:
x = 500
x is 500
返回 False,但是:
y = 100
y is 100
返回真值?
<分区> 分区>
Possible Duplicate:
Python “is” operator behaves unexpectedly with integers
我正在学习 Python,并且很好奇为什么:
x = 500
x is 500
返回 False,但是:
y = 100
y is 100
返回真值?