parent
8ed8f0af48
commit
d854211695
@ -0,0 +1,4 @@
|
||||
setA = set('asdfghjkl')
|
||||
setB = set('qweasdzxc')
|
||||
|
||||
print("交集为 {}\n并集为 {}\n差集为 {}".format(setA.intersection(setB), setA.union(setB), setA.difference(setB)))
|
Loading…
Reference in new issue