我有几个不同的列表,我想变成一个集合,用于找到与另一个集合的差异.我们称他们为A,B和C.
是更优化的方式来做到这一点set(A + B + C)或set(A).union(set(B)).union(set(C))
set(A + B + C)
set(A).union(set(B)).union(set(C))
A,B和C的某些属性是否会影响此决定的重复次数或长度?
会有任意数量的套数?
python
python ×1