Skip to content
On this page

uniq

返回一个新列表,去除重复元素。

python
from usepy import uniq

参数

  • lst: 源列表

例子

python
>>> uniq([1, 2, 2, 3, 4, 4, 5])
[1, 2, 3, 4, 5]

Released under the MIT License.