Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面的代码怎么可能?
>>> frozenset(('a_')) == frozenset(['a_']) False >>> frozenset(('a')) == frozenset(['a']) True
我的理解是,只要迭代的每个元素都是可散列的,就会实例化一个冻结集,每个元素都是给定迭代的元素。我希望上面的两个表达式都应该返回True。
True