摘要: x = [1,2,3,4,5,1] y = list(set(x)) print(y) ``` [1, 2, 3, 4, 5] ``` 2. x = ['b','c','d','b','c','a','a'] y = {}.fromkeys(x).keys() print(y) ``` dict_k 阅读全文
posted @ 2017-12-21 17:07 爱学英语的程序媛 阅读(437) 评论(0) 推荐(0) 编辑