is 是⽐较两个引⽤是否指向了同⼀个对象(引⽤⽐较)
== 是⽐较两个对象是否相等
a = [1, 2, 3]
b = a
a ==b
>>>True
a is b
>>>True
c = copy.deepcopy(a)
a == c
>>>True
a is c
>>>False
is 是⽐较两个引⽤是否指向了同⼀个对象(引⽤⽐较)
== 是⽐较两个对象是否相等
a = [1, 2, 3]
b = a
a ==b
>>>True
a is b
>>>True
c = copy.deepcopy(a)
a == c
>>>True
a is c
>>>False