首页 > 其他 > 详细

File 读取处理大数据文件

时间:2020-05-05 15:01:47      阅读:50      评论:0      收藏:0      [点我收藏+]
bigFile = "File.txt"
appendTest = open(bigFile,"r",encoding="utf8")
num = 0
for i in appendTest:
    num += 1
    if num == 2:
        i = "".join([i.strip(),"\"+被处理行!\""])
    print(i.strip())
appendTest.close()

File 读取处理大数据文件

原文:https://www.cnblogs.com/surenliu/p/12830499.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!