how to fast processing one million strings to remove quotes

Peter Otten __peter__ at web.de
Wed Aug 2 14:13:59 EDT 2017


Daiyue Weng wrote:

> Hi, I am trying to removing extra quotes from a large set of strings (a
> list of strings), so for each original string, it looks like,
> 
> """str_value1"",""str_value2"",""str_value3"",1,""str_value4"""

Where did you get that strange list from in the first place?

If it is read from a file it is likely that you can parse the data into the 
desired format directly, e. g. by using the csv module.





More information about the Python-list mailing list