Personal Knowledge Base
Wednesday, February 15, 2012
Python code that find the wrong data in huge data file
following code go though big data file find the line that data startwith letter "T"
fa = open ('a.bbb','r')
i = 0
for line in fa:
i= i + 1
if line.startswith('T'):
print i;
fa.close()
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment