What is the cleanest way to do a sort plus uniq on a Python list?

后端 未结 5 946
囚心锁ツ
囚心锁ツ 2020-12-23 15:55

Consider a Python list my_list containing [\'foo\', \'foo\', \'bar\'].

What is the most Pythonic way to uniquify and sort a list ?
(thi

5条回答
提交回复
热议问题