alist = [15,30,3,50,23,19,1,13,25,50,19,3,19,2,5]
set(alist)
set([1, 2, 3, 5, 13, 15, 50, 19, 23, 25, 30])
set([1, 2, 3, 5, 13, 15, 50, 19, 23, 25, 30])
alist.sort()
[1, 2, 3, 3, 5, 13, 15, 19, 19, 19, 23, 25, 30, 50, 50]
[1, 2, 3, 3, 5, 13, 15, 19, 19, 19, 23, 25, 30, 50, 50]
sorted(set(alist))
[1, 2, 3, 5, 13, 15, 19, 23, 25, 30, 50]
[1, 2, 3, 5, 13, 15, 19, 23, 25, 30, 50]
0 留言