标签:lock contract log ini alt out open images rac
一。集合。
(1)去重。
>>> a = {1,2,3,4,5} >>> a {1, 2, 3, 4, 5} >>> b = {1,3,5,7,9,11} >>> b {1, 3, 5, 7, 9, 11} >>> type(a) <class ‘set‘> >>> a.symmetric_difference(b) #字典a与b去重后的集合。 {2, 4, 7, 9, 11} >>>
标签:lock contract log ini alt out open images rac
原文地址:http://www.cnblogs.com/huajianhuakai/p/6377276.html