Saturday, 24 August 2013

Convert Array formatted as a string - Python

Convert Array formatted as a string - Python

I am receving a string through a socket like so
"['[0,0,0]','[0,0,0]']"
I would like to convert it back to a string. I have tried using
received.split(",")
however it splits up the arrays inside the array.
How would I go about converting the string to an array?

No comments:

Post a Comment