数学建模例题2.23 过滤重复值

`def filter_non_unique(L):
return [item for item in L if L.count(item) == 1]
a=filter_non_unique([1, 2, 2, 3, 4, 4, 5])
print(a)

print("学号:3005")`

posted on 2024-10-28 11:56  VVV1  阅读(9)  评论(0)    收藏  举报