会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
程序猿Xiaohen
https://www.gitbook.com/@huangxiaohen2738
博客园
首页
新随笔
联系
管理
2014年7月9日
python 删除list中重复元素
摘要: list = [1,1,3,4,6,3,7] 1.for s in list: if list.count(s) >1: list.remove(s) 2.list2=[]for s in list: if s not in list2: list2.ap...
阅读全文
posted @ 2014-07-09 17:44 huangxiaohen
阅读(1527)
评论(0)
推荐(0)
编辑
公告