c.most_common()[:-n-1:-1] # n least common elements. 9. c += Counter() # remove zero and negative counts. 10. . Source: docs.python.org.
確定! 回上一頁