What you want is collections.Counter , and the Counter.most_common method. A naive implementation could be: import collections lists ...
確定! 回上一頁