OrderedDict():
aaa=OrderedDict()
aaa
OrderedDict()
aaa["out"]=OrderedDict()
aaa["out"]["in"]=123
aaa
OrderedDict([('out', OrderedDict([('in', 123)]))])
aaa["out"]["in"]
123
type(aaa)
collections.OrderedDict
aaa["oua"]=OrderedDict()
aaa
OrderedDict([('out', OrderedDict([('in', 123)])), ('oua', OrderedDict())])
aaa["oua"]["ia"]=121
aaa
OrderedDict([('out', OrderedDict([('in', 123)])),
('oua', OrderedDict([('ia', 121)]))])
普通的dict:
aaa={}
aaa["out"]={}
aaa
{'out': {}}
aaa["out"]["in"]=123
aaa
{'out': {'in': 123}}