复制代码 代码如下:
def delRepeat(liebiao): for x in liebiao: while liebiao.count(x)>1: del liebiao[liebiao.index(x)] return liebiao
liebiao=set(liebiao)
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8