Oct-15-2018, 06:07 AM
hi,
I am writing a csv file which appends data into rows like [attachment=483] but want it like this [attachment=484]
I have list [] where i am appending the data and using it to to write file :
I am writing a csv file which appends data into rows like [attachment=483] but want it like this [attachment=484]
I have list [] where i am appending the data and using it to to write file :
def writefiles(alldata, filename): with open ("./"+ filename, "w") as csvfile: csvfile = csv.writer(csvfile, delimiter=",") csvfile.writerow("") for i in range(0, len(alldata)): csvfile.writerow(alldata[i]) writefiles(alldata, "Data.csv")How can i do this?