python3-分割文本文件-成都创新互联网站建设

关于创新互联

多方位宣传企业产品与服务 突出企业形象

公司简介 公司的服务 荣誉资质 新闻动态 联系我们

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://kswsj.cn/article/iheigd.html

其他资讯