时间:2021-07-01 10:21:17 帮助过:62人阅读
#xiaohei.python.seo.call.me:)
#win+python2.7.x
id_ = 1
f = open('clubpop%s.xml' % id_, 'w')
for i, line in enumerate(open('suk.csv')):
if i % 50000==0:
print i
f.write('\n
f.write('''
''' % line.rstrip())
if i % 50000==49999:
f.write('
f.close()
id_ += 1
f = open('clubpop%s.xml' % id_, 'w')
f.write('')
f.close()