码迷,mamicode.com
首页 > 编程语言 > 详细

python读取大文件【一行一行读取】

时间:2014-09-10 02:40:39      阅读:244      评论:0      收藏:0      [点我收藏+]

标签:blog   for   文件   div   log   on   c   line   python   

with open(‘e:/content.txt‘) as f:
  for line in f:
    if ‘==3346628==‘ in line:
      …………

  

python读取大文件【一行一行读取】

标签:blog   for   文件   div   log   on   c   line   python   

原文地址:http://www.cnblogs.com/bushe/p/3963657.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!