标签:方法 for print logs http highlight image [] div
list_a = [1, 2, 2, 3, 4, 4, 4, 5, 5, 6] list_b = [] for i in list_a: if list_a.count(i) == 1: list_b.append(i) print(list_b)
更简洁方法:异或
标签:方法 for print logs http highlight image [] div
原文地址:http://www.cnblogs.com/UncleYong/p/6914207.html