1
phuslu 2012-11-09 21:48:19 +08:00
collections.defaultdict(collections.Counter)
python 2.7 |
2
013231 2012-11-09 22:46:02 +08:00
這種問題用reduce解決最簡單了:
http://gist.github.com/4046085 |