import csv import time with open('C://Users//data//march.csv') as rf: reader = csv.reader(rf) with open('csv2.csv','wb') as wf: writer = csv.writer(wf) for row in reader: #print(type(row)) sf1=row[9].split('/') #print(sf1[0]) #time.sleep(0.1) if str(sf1[0])=='***': print(row) str1 = str() for i in row: str1 = str1 + i+',' print(str1) writer.writerow(str1) print('**'*30)
观自在
aaaaaaaaten
JacXuan