摘要: 列表的去重 1、使用set的特型,python的set和其他语言类似, 是一个无序不重复元素集 orgList = [1,0,3,7,7,5] #list()方法是把字符串str或元组转成数组 formatList = list(set(orgList)) print (formatList) 2、 阅读全文
posted @ 2019-12-01 11:48 蓝小六 阅读(451) 评论(0) 推荐(0) 编辑