📜  如何在python代码示例中唯一列表

📅  最后修改于: 2022-03-11 14:45:08.816000             🧑  作者: Mango

代码示例4
mylist = ['nowplaying', 'PBS', 'PBS', 'nowplaying', 'job', 'debate', 'thenandnow']
myset = set(mylist)
print(myset)
mynewlist = list(myset)
#['nowplaying', 'PBS', 'job', 'debate', 'thenandnow']