#!/usr/bin/env python
fl = open(‘train.csv‘)
wrr = open(‘no_time_but_add.csv‘,‘w+‘)
for key in fl:
pt = key.split(‘,‘)
if pt[2] != ‘‘:
wrr.write(key)
print pt
fl.close()
wr.close()
时间: 2024-10-11 04:57:21
#!/usr/bin/env python
fl = open(‘train.csv‘)
wrr = open(‘no_time_but_add.csv‘,‘w+‘)
for key in fl:
pt = key.split(‘,‘)
if pt[2] != ‘‘:
wrr.write(key)
print pt
fl.close()
wr.close()