我期待以下两个元组
>>> x = tuple(set([1, "a", "b", "c", "z", "f"])) >>> y = tuple(set(["a", "b", "c", "z", "f", 1]))
比较不平等,但他们不:
>>> x == y >>> True
这是为什么?
python comparison tuples hashtable set
comparison ×1
hashtable ×1
python ×1
set ×1
tuples ×1