Is there a more efficient way to update values of all subfield in each key in a dictionary

前端 未结 0 1933
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 14:37

I have a json data loaded into a dictionary in Python that follows the following structure:

data = {
    1: {
        \'field1\': 0,
        \'field2\': 2
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题