Replace elements in list with a nested list containing them in python3

后端 未结 0 1766
时光说笑
时光说笑 2021-01-12 11:55

I am trying to replace elements in a list with a list containig said elements, for example:

list = [\'cow\',\'orange\',\'apple\',\'mango\']
to_replace = \'ora         


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