# 集合是由 { ,} 组成 test = {1,2,8,9,7,5} print(test) {1, 2, 5, 7, 8, 9} # 集合的结果是 去重的,且排序是 无序的 test = {1,2,3,3,5,8,5,9,7,6} print(test) {1, 2, 3, 5, 6, 7, 8, 9} s = set('hello') print(s) {'l', 'o', 'h', 'e'} # add()添加 test = {1,2,3,8,5,9,7,6} test.add(16)…