python集合支持索引吗_Python中的可索引弱有序集合
我想知道是否有一种简单的方法在Python中构建可索引弱有序集。我试图自己创建一个。以下是我想到的:"""An indexable, ordered set of objects, which are held by weak reference."""from nose.tools import *import blistimport weakrefclass WeakOrderedSet(bl...