tumble. phil adams.

  • Archive
  • RSS

python nested defaultdicts

d = defaultdict(lambda : defaultdict(int)) d['a']['b'] += 1

awesome.

  • 2 years ago
  • 21
  • Permalink
  • Share
    Tweet

21 Notes/ Hide

  1. buck-ly reblogged this from philadamsdotnet
  2. mihow liked this
  3. philadamsdotnet posted this
← Previous • Next →

About

<witty description />
  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr