1 2 3 4 5 6 7 8 9 10 11
import sys inputfile = open(sys.argv[1], 'r') for line in inputfile: cells = line.split() #print cells[int(sys.argv[2])] i = len(cells) print i inputfile.close()