Category: file handling

python csv file to json 0

python csv file to json

Hits: 0CSV to json format code directly import json fo=open( "C:\\RenL\\entry.csv" , "r" ) #Open csv file ls=[] for line in fo: line=line.replace( "\n" , "" ) #replace the newline with empty ls.append(line.split( ","...