CSV writing strings of text that need a unique delimiter

后端 未结 3 1282
无人及你
无人及你 2021-01-25 06:14

I wrote an HTML parser in python used to extract data to look like this in a csv file:

    itemA, itemB, itemC, Sentence that might contain commas, or colons: li         


        
3条回答
  •  别那么骄傲
    2021-01-25 06:46

    CSV files usually use double quotes " to wrap long fields that might contain a field separator like a comma. If the field contains a double quote it's escaped with a backslash: \".

提交回复
热议问题