由于mysql文件过大,source导入本机也要两天多,于是利用python进行数据统计分析
快速读取文件流
def readfile(file):
with open(file,'r+',encoding='utf-8') as f:
while True:
line = f.readline()
if not line:
return
yield line.strip()
for text in readfile(
由于mysql文件过大,source导入本机也要两天多,于是利用python进行数据统计分析
快速读取文件流
def readfile(file):
with open(file,'r+',encoding='utf-8') as f:
while True:
line = f.readline()
if not line:
return
yield line.strip()
for text in readfile(