标签:sha end lis sharp [] csharp 去除 转换 app
1. 去重(去除重复的内容)
#方法一: a = [11,22,33,44,11,22,33,44] #定义一个空的变量 c = [] for i in a: if i not in c: c.append() #方法二: a = [11,22,33,44,11,22,33,44] #将其转换成集合 b = set(a) #再转换回来 c = list(b)
标签:sha end lis sharp [] csharp 去除 转换 app
原文地址:http://www.cnblogs.com/puttylove/p/7072397.html