1:目标: initial set 一开始所有元素相对独立 [{0}, {1}, {2}, {3}, {4}] 首先连接1,2 [{0}, {1, 2}, {3}, {4}] 然后连接2,3 [{0}, {1, 2, 3}, {4}] 2: 代码实现: # version_1 #使用集合实现连接关系(效率低) #impement joint dataset with set class DSListofSet(object): def __init__(self,N): print('log ACTIVATED!') self.logOutPut =