例如,
string = "['SING', 'Dance'],['Talk', 'Scream'],['Run', 'Walk']"
如何将上面的每个列表作为新列表的元素创建一个新列表?
我试过了
string = string.split (',')
但是它也被列表中的逗号分开,这是我不想要的.
python split list comma
comma ×1
list ×1
python ×1
split ×1