student = {'Tom', 'Jim', 'Mary', 'Tom', 'Jack', 'Rose'} print(student) a = set('abcdabc') print(a) #每次输出是不一样的,如输出:{'d', 'b', 'a', 'c'}