leisurelicht/wtfpython-cn

ipython 运行代码

DamongZ opened this issue · 1 comments

‘出人意料的is’, 一节中 a = 257; b = 256, 在ipython中会出现不同的输出
a = 257; b = 257
In [2]: a is b
Out[2]: False

解释请看 #13 (comment)