How to handle modification to mutable object yielded from generator during exhaustion

前端 未结 0 712
终归单人心
终归单人心 2021-02-13 04:22

I have this dummy code:

dict_list = [
    {\'foo\': 1, \'bar\': 2, \'baz\': 3, \'extra\': [4, 5, 6, 7]},
    {\'foo\': 10, \'bar\': 20, \'baz\': 30, \'extra\': []         


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