摘要: 一、今日面试题 # 去重并保持原来的顺序 # 方法一 l1 = [11, 2, 3, 22, 2, 4, 11, 3] l2 = [] for i in l1: if i not in l2: l2.append(i) print(l2) print("=" * 120) # 方法二 l3 = li 阅读全文
posted @ 2018-05-28 19:49 yangli0504 阅读(131) 评论(0) 推荐(0) 编辑