1、Defaultdict
调用语句:
From Collections import defaultdict
2、orderedDict
实现字典。
from collections import OrderedDict import json d = OrderedDict() d['how'] = 1
3、Deque
import collections
d = collections.deque('abcdefg')
print('Deque:', d)
print('Length:', len(d))