3 def __init__(self,filename,dialect='excel',delimiter=',',quoting=csv.QUOTE_NONNUMERIC):
5 filename : output csv path/name 12 self.__writer.writerow(row)
13 except csv.Error
as e:
17 self.__writer.writerows(rows)
18 except csv.Error
as e:
23 if __name__ ==
'__main__':
24 filename=
'testwrite.csv' 26 fieldnames=[
't1',
't2',
't3']
27 r.writeRow(fieldnames)
34 delivered=[[
'run',
'deliveredls',
'delivered'],[1234,23445,123.456],[2348,20,8893.0]]
35 r.writeRows(delivered)
def writeRows(self, rows)
def __init__(self, filename, dialect='excel', delimiter=', quoting=csv.QUOTE_NONNUMERIC)