Recursively set object attributes from dict

后端 未结 0 1758
情歌与酒
情歌与酒 2021-01-28 01:24

My question is relatively simple: How do I recursively set object attributes matching the key-value pairs of a dictionary?

For example, given this dict:



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