标签: python
在python中,我做了这个实验:
In [1]: a = 42 In [2]: b = 42 In [3]: a is b Out[3]: True In [4]: a = 257 In [5]: b = 257 In [6]: a is b Out[6]: False
谁能解释为什么第二次显示为假?看起来真的很奇怪...