Python filter a list to only leave objects that occur once

前端 未结 9 749
野的像风
野的像风 2020-12-15 13:18

I would like to filter this list,

l = [0,1,1,2,2]

to only leave,

[0].

I\'m struggling to do it in a \'pythoni

9条回答
提交回复
热议问题