擅长:python、mysql、java
<pre><code>>>> for year, (counter, other_thing) in d.items():
... print(year)
... for k, v in counter.items():
... print(k, v)
... print(other_thing)
... print()
...
2012
1 1
2 1
4 1
3
2013
4 2
12 1
5 1
6 1
5
2014
1 1
2 1
3 1
4 3
6
</code></pre>