最快速读取文档,指定那一行


#以下代码适用于作者本机,使用前请先测试

#!/usr/bin/python
#-*- coding:utf-8 -*-

data = open('F:\\test\\customer.txt','r')
#print(data.read())

count = 0
for i in data:
if count ==1:
print(i.strip())
print(count)
count+=1
continue
count+=1

此文档仅供学习,不做商业推广。如有版权问题,请留言,会即时删除处理。
posted @ 2018-04-10 14:27  randy_cai  阅读(95)  评论(0)    收藏  举报