python 列表去从
2018-01-09 本文已影响0人
软红十丈
#/usr/bin/python
projects = [1,1,'a','a']
projects= list(set(projects))
print projects
结果:projects = [1,'a']
#/usr/bin/python
projects = [1,1,'a','a']
projects= list(set(projects))
print projects
结果:projects = [1,'a']