I have a tuple like string line like:
("a",10,4,"abc")
I would like to parse it to contain each item in a string list:
ans = [a, 10, 4, abc]
In the example, I achieve easily it splitting the string line with comma.
However, a string item in the string line might have commas and double quotations, like
("abc",10,-4,"abc"","d,ef")
I would like get the string list.
ans = [abc, 10, -4, abc", d,ef]
Does anyone have a good idea to achieve it with Python?