有人可以解释一下吗?
>>> [] is [] False >>> () is () True >>> (1,) is (1,) False
我明白我应该使用"=="代替"是"来比较这些值,我只是想知道为什么会这样?
python
python ×1