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

后端 未结 0 1045
挽巷
挽巷 2021-02-12 07:37

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\',         


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