parse a csv file into a text file

Asaf Las roegltd at gmail.com
Wed Feb 5 19:17:17 EST 2014


On Thursday, February 6, 2014 2:10:16 AM UTC+2, Zhen Zhang wrote:
> Hi, every one.
> Zhen
str_t = '3520005,"Toronto (Ont.)",C  ,F,2503281,2481494,F,F,0.9,1040597,979330,630.1763,3972.4,1' 
list_t = str_t.split(',')
print(list_t)
print("split result ", list_t[1], list_t[5])
print(list_t[1].split('"')[1])




More information about the Python-list mailing list