How to split a list-of-strings into sublists-of-strings by a specific string element

后端 未结 0 1012
天命终不由人
天命终不由人 2021-02-12 07:58

I have a word list like below. I want to split the list by .. Is there any better or useful code in Python 3?

a = [\'this\', \'is\', \'a\', \'cat\',         


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