# 读取的csv文件
with open('./temp1.csv','r') as f:
# 转存的csv文件
with open('./data_20000000.csv','w+') as last:
times = 0
while True:
if times ==20000000:
break
times +=1
line = f.readline()
if not line:
break
# print(line)
last.write(f"{line}")
截取前2000万条数据(Python)
最新推荐文章于 2024-08-27 16:38:10 发布