Retrieve item deep in dict tree?

Steven D'Aprano steve at pearwood.info
Thu Apr 3 01:29:47 EDT 2014


On 2014年4月02日 21:15:23 -0700, Rustom Mody wrote:
>>>> reduce(dict.get, ['a','b','c'], nested)
> 'Hiii!!'

Nice!
-- 
Steven


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /