Python Snippets 一些有用的代码片段。 1. collections Counter: 简单的计数器 2. itertools combinations: 列表或生成器中指定数目的元素不重复的所有组合