说明:类型转换为 set。
set
def set(x): ''' 类型转换为 set :param x: 一个变量 :return: 转换为 set 后的值 '''
示例:
运行示例
print(set([1, 1, 1, 2, 2, 3, 3, 4, 5, 5, 6]))