cool! thanks you all! I choose a=set(range(100000)) b=set(range(50000)) a.symmetric_difference(b) certainly,the real data not range(), I am satisfied the performance of set.difference
thank you all again! -- http://mail.python.org/mailman/listinfo/python-list