Efficient way to either create a list, or append to it if one already exists?

后端 未结 0 935
遥遥无期
遥遥无期 2021-02-11 12:08

I\'m going through a whole bunch of tuples with a many-to-many correlation, and I want to make a dictionary where each b of (a,b) has a list of all the a\'s that correspond to a

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