Python 的"is None" vs "==None" ... 测试环境为Python 3.6.9,测试如下: ... 比较单例时,例如 None ,应该使用 is 或 is not ,不能使用 == 。
確定! 回上一頁