Created
March 14, 2015 20:10
-
-
Save xiaq/ff936606b703d4ac3cb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
COL = 2 | |
acc = 0 | |
with open(sys.argv[1]) as f: | |
for line in f: | |
acc += int(line.split('\t')[COL]) | |
print acc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment