is 判断两个标识符是否引用同一个对象 isnot 判断两个标识符是否引用不同对象 is和==区别 a=[1,2,3] b=[1,2,3] a is b :False a==b: True 和None比较时,建议用is判断