{{1,2}, {3,4}}
导致:
TypeError: unhashable type: 'set'
而是使用frozenset:
{frozenset({1, 2}), frozenset({3, 4})}