summing nested dictionary entries
问题 I have a JSON file that I'm reading in as a dictionary. What I have is something like: "20101021": { "4x4": { "Central Spectrum": 5, "Full Frame": 5, "Custom": 1 }, "4x2": { "Central Spectrum": 5, "Full Frame": 5 }, "1x1": { "Central Spectrum": 5, "Full Frame": 4 }, }, "20101004": { "4x4": { "Central Spectrum": 5, "Full Frame": 5 }, "4x2": { "Central Spectrum": 5, "Full Frame": 5 }, "1x1": { "Central Spectrum": 5, "Full Frame": 5 } and so on. I am trying to calculate sums (over all dates) for