我正在尝试解析以下字符串:
编辑以考虑空间...
['THE LOCATION', 'THE NAME', 'THE JOB', 'THE AREA')]
现在我使用正则表达式并用逗号将数据拆分成一个列表
InfoL = re.split(",", 信息)
但是我的输出是
'THE LOCATION'
'THE NAME'
'THE JOB'
'THE AREA')]
期待输出如下
THE LOCATION
THE NAME
THE JOB
THE AREA
想法?