点我,领福利

Python数组去重

1 """
2 数组去重
3 """
4 s = [1, 2, 3, 4, 4, 5, 3, 1]
5 y = list(set(s))
6 print y

 

posted @ 2020-10-31 09:52  烂白菜♨  阅读(140)  评论(0)    收藏  举报