Last login: Thu May 26 23:41:30 on ttys000
➜ ~ python
Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> index = {'合作':[(0, 5)], '每次':[(20, 99), (30, 11), (31, 69), (31, 80)],'在意':[(6, 40), (9, 5)]}
>>> for k, v in index.items():
... print k
... for first, second in v:
... print '\t', first, second
...
在意
6 40
9 5
每次
20 99
30 11
31 69
31 80
合作
0 5
>>>