How to get all indices of all chars in the list?

后端 未结 0 537
一生所求
一生所求 2020-12-16 07:19

I want to create a dictionary that takes a char in a list as key, the value should be a new list containing the indices on which the char occurs.

Something like: list

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