دنبال کننده ها

۱۳۹۶ آذر ۱۰, جمعه

python - How to re.split this line

[ad_1]



Want to split this line :



 1, 0.625, 0., 2.5


to get output string like :



a = [" " , "1" , "," , " " , "0.625" , "," , " " , "0." , "," , " " , "2.5"] so I could change value of for example a[0] = 2 and at end get this :



 2, 0.625, 0., 2.5


Is it possible? Please help




[ad_2]

لینک منبع