2018-03-23发表2021-08-20更新编程语言几秒读完 (大约26个字)Python小整数缓存池[-5, 256] 12345678910111213141516>>> a = -6>>> b = -6>>> a is bFalse>>> a = -5>>> b = -5>>> a is bTrue>>> a = 256>>> b = 256>>> a is bTrue>>> a = 257>>> b = 257>>> a is bFalse Python小整数缓存池https://oxo.red/python_small_int_memory_pool/作者Han发布于2018-03-23更新于2021-08-20许可协议#笔记Python