def loadSubjects(filename): catalog = {} inputFile = open(filename) for line in inputFile: line = string.strip(line) lineList = string.split(line, ',') lineList[1] = int(lineList[1]) lineList[2] = int(lineList[2]) catalog[lineList[0]] = lineList[1:] return catalog
No comments:
Post a Comment