已经是清单了
type(my_set)>>> <type 'list'>
你想要类似的东西吗
my_set = set([1,2,3,4])my_list = list(my_set)print my_list>> [1, 2, 3, 4]
编辑:您的最后评论的输出
>>> my_list = [1,2,3,4]>>> my_set = set(my_list)>>> my_new_list = list(my_set)>>> print my_new_list[1, 2, 3, 4]
我想知道您是否做了这样的事情:
>>> set=set()>>> set([1,2])Traceback (most recent call last): File "<stdin>", line 1, in <module>TypeError: 'set' object is not callable



