a = [1,2,3,5,8] ## 如果两个的长度不同,那么结果就是较短的长度
b = [2,3,4,8]
print(dict(zip(a, b))) #{1: 2, 2: 3, 3: 4, 5: 8}
print(list(zip(a, b))) #[(1, 2), (2, 3), (3, 4), (5, 8)]
print(tuple(zip(a, b))) #((1, 2), (2, 3), (3, 4), (5, 8))
a = [1,2,3,5,8] ## 如果两个的长度不同,那么结果就是较短的长度
b = [2,3,4,8]
print(dict(zip(a, b))) #{1: 2, 2: 3, 3: 4, 5: 8}
print(list(zip(a, b))) #[(1, 2), (2, 3), (3, 4), (5, 8)]
print(tuple(zip(a, b))) #((1, 2), (2, 3), (3, 4), (5, 8))
print({*range(1, 10)}) #{1, 2, 3, 4, 5, 6, 7, 8, 9}
print(set([1,2,2,3,4,4,4])) ## set的表现形式就是{1, 2, 3, 4}
a = {1, 2, 3, 4}
b = {1, 2, 3, 4}
print(a-b)
a = [1,2,3,4]
b = [2,3]
print(a+b) ## list只能加list,不可以减。因为不不知道减去哪一个