RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
python3-分割文本文件
#myhaspl@myhaspl.com
fId=1
with open("tf-allsrc.txt","r") as sf: 
    while True:
        with open("tf-src-"+str(fId)+".txt","w+") as f:
            data=sf.read(1024*1024*5)
            if not data:
                break
            f.write(data)
            print(fId,"#",end=".")
        fId+=1

网站名称:python3-分割文本文件
标题路径:http://sczitong.cn/article/iheigd.html