标签:lse 情况下 false 相等 情况 operator int port print
a = {'a': 1, 'b': 2}
b = {'a': 1, 'b': 2}
c = {'a': 1, 'b': 3}
print(a == b) # True
print(a == c) # False
import operator
a = {'a': 1, 'b': 2}
b = {'a': 1, 'b': 2}
c = {'a': 2, 'b': 2}
print(operator.eq(a, b)) # True
print(operator.eq(a, c)) # False
标签:lse 情况下 false 相等 情况 operator int port print
原文地址:https://www.cnblogs.com/shiwanghualuo/p/12051894.html