withopen('./tmp.txt', encoding='utf8') as f: lines = f.readlines()
numsList = [] index = 0 totalSize = 0 for line in lines: if (index < 3): index += 1 continue curLine = line.split() numsList.append(curLine[-2]) curNum = locale.atoi(curLine[-2]) totalSize += curNum index += 1