set
dict
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
s1=set([1,1,2,2,3,3])
print(s1)
s2=set([2,3,4])
print(s1 & s2)
print(s1 | s2)
set
dict
#!/usr/bin/env python3
#-*- coding: utf-8 -*-
s1=set([1,1,2,2,3,3])
print(s1)
s2=set([2,3,4])
print(s1 & s2)
print(s1 | s2)
本文标题:2018-07-27
本文链接:https://www.haomeiwen.com/subject/ydqnmftx.html
网友评论