How to remove empty or None fields in deeply nested dictionary of unknown depth?

后端 未结 0 758
梦谈多话
梦谈多话 2021-01-29 03:27

I have a dictionary of deeply nested dictionaries and I am trying to remove all k-v pairs that are None or "". The below dictionary d is an example of the

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