【发布时间】:2012-11-12 05:45:45
【问题描述】:
我需要存储一个set 的lists 由identity 散列:如果两个列表是相同的对象,则它们是相等的。
不仅使用tuples not make much sense semantically,而且有时我还需要改变列表(每隔一段时间在末尾添加一些元素),所以我不能使用tuple at全部。
如何在 Python 中存储按身份散列的列表散列集?
【问题讨论】:
标签: python python-2.7 set hashtable python-2.x