帅兰
l1 = ['b', 'c', 'd', 'b', 'c', 'a', 'a']
l1 = set(l1)
print(l1)
l2 = []
for i in l1:
if i not in l2:
l2.append(i)
print(l2)
for i in l1:
if l1.count(i) > 1:
l1.remove(i)
print(l1)
pythons = {'jason', 'egon', 'kevin', 'ricky', 'gangdan', 'biubiu'}
linuxs = {'kermit', 'tony', 'gangdan'}
res = pythons & linuxs
print(res)
res = pythons | linuxs
print(res)
res = pythons - linuxs
print(res)
res = pythons ^ linuxs
print(res)
list1 = [1, 2, 3]
list2 = [3, 4, 5]
list2 = set(list2)
list1 = set(list1)
print(list1 & list2)
print(list1 ^ list2)
list1 = [1, 2, 3]
list2 = [3, 4, 5]
l1 = []
l2 = []
for i in list1:
if i in list2:
if i not in l1:
l1.append(i)
else:
if i not in l2:
l2.append(i)
for i in list2:
if i in list1:
if i not in l1:
l1.append(i)
else:
if i not in l2:
l2.append(i)
print('相同:', l1)
print('不同:', l2)
bit、bytes、KB、MB、GB、TB、PB
bytes = 8bit
1024bytes = 1KB
1024KB = 1MB
1024MB = 1GB
1024gB = 1tB
1024tB = 1pB