Appearance
将值转换为集合
from usepy import to_set
value
set
>>> to_set([1, 2, 2, 3]) {1, 2, 3} >>> to_set("abcabc") {'a', 'b', 'c'} >>> to_set((1, 2, 3)) {1, 2, 3}