Split a string ignoring quoted sections

前端 未结 13 2347
别跟我提以往
别跟我提以往 2020-12-06 00:15

Given a string like this:

a,\"string, with\",various,\"values, and some\",quoted

What is a good algorithm to split this based on

相关标签:
13条回答
  • 2020-12-06 00:46

    Python:

    import csv
    reader = csv.reader(open("some.csv"))
    for row in reader:
        print row
    
    0 讨论(0)
提交回复
热议问题