#-*- coding: -*-
importio
LIMIT= 150000file_count=0
url_list=[]
with io.open('D:\DB_NEW_bak\DB_NEW_20171009_bak.sql','r',encoding='utf-16') as f:for line inf:
url_list.append(line)if len(url_list)
file.write(url)
file.write(url_list[-1].strip())
url_list=[]
file_count+=1
ifurl_list:
file_name= str(file_count) + ".sql"with io.open(file_name,'w',encoding='utf-16') as file:for url inurl_list:
file.write(url)print('done')