How to make json in python? -
i have following data:
0.485431503455,1.88492294876
2.35886680948,1.11511483636
i need covert data following format in python.
[0.485431503455,1.88492294876]
[2.35886680948,1.11511483636]
how can this?
you can this:
>>> stri = "0.485431503455,1.88492294876" >>> stri = [float(i) in stri.split(",")] >>> stri [0.485431503455, 1.88492294876]
i don't know meant make json in python.
but guess want use https://docs.python.org/2/library/json.html
Comments
Post a Comment