我有这个字符串'id,obj1,"string, etc",obj2',现在我需要把它分成这样的字典:
'id,obj1,"string, etc",obj2'
{ 1 = 'id', 2 = 'obj1', 3 = 'string, etc', 4 = 'obj2' }
我一直在玩正则表达式,试图划分字符串但没有成功.任何帮助表示赞赏
python csv split
csv ×1
python ×1
split ×1