不能用关键词should be equal as Numbers,会报错 2.可考虑id(object)属性。因为None在python里是个单例对象,一个变量如果是None,它一定和None指向同一个内存地址 should be equal id(a) id(b)