list_data = [1,5,4,8,5,4,5,2,1] drop_ducp = set(list_data) print(drop_ducp) def drop_ducp(data): new_data = [] for each in data: if each not in new_data: new_data.append(each) else: continue return new_data
去重
猜你喜欢
转载自blog.csdn.net/qq_27015119/article/details/80760764
今日推荐
周排行