union()方法返回一个新集,其中包含两个集中的所有项:set1 = {"a", "b" , "c"}set2 = {1, 2, 3}set3 = set1.union(set2)print(set3)执行结果:{1, 'c', 2, 3, 'a', 'b'}