目次

Python dict

since 2012-05-08

python の dict 型で phparray_merge みたいなことをやるには?

http://d.hatena.ne.jp/cheeseshop/20090530/1243677621

>>> d = {"a":"b"}
>>> d.update({"c":"d"})
>>> print d
{'a': 'b', 'c': 'd'}