2016年7月21日 星期四

[python] 去除 list 裡重覆的資料

source_list = [1,2,3,4,5,6,1,2,3,4]
new_list = list(set(source_list))
print(new_list)

[1,2,3,4,5,6]

沒有留言: