集合操作
附上代码:
1 M = int(input())
2 m = set(map(int, raw_input().strip().split()))
3 N = int(input())
4 n = set(map(int, raw_input().strip().split()))
5 tmp = sorted(m.union(n).difference(m.intersection(n)))
6 for i in xrange(len(tmp)):
7 print tmp[i]
hackerrank---Sets - Symmetric Difference,布布扣,bubuko.com
hackerrank---Sets - Symmetric Difference
原文:http://www.cnblogs.com/Stomach-ache/p/3721955.html