q986 发表于 2018-8-10 10:38:18

python set全解

a = ()  
b = ()
  
(() ())
  
(() ())
  
(() ())
  
(() < ())
  
(() == ())
  
(a.intersection(b))
  
(a.union(b))
  
(a.difference(b))
  
(b.difference(a))
  
(a.symmetric_difference(b))
  

  
(a | b)
  
print( a ^ b)
  
( a & b)
页: [1]
查看完整版本: python set全解