def loadTest(test_file): lines = cm.readFile(test_file) P = [] T = [] for line in lines: tmp = line.strip().split(' ') P.append(int(tmp[3]) - 1) T.append(int(tmp[5]) - 1) return P, T
def loadTest(test_file): lines = cm.readFile(test_file) P=[] T=[] for line in lines: tmp = line.strip().split(' ') P.append(int(tmp[3])-1) T.append(int(tmp[5])-1) return P,T
def loadTest(test_file): lines = cm.readFile(test_file) Ps = {} Ts = {} for k in range(0, cm.SPAN_NUM): Ps[k] = [] Ts[k] = [] for line in lines: tmp = line.strip().split(' ') k = int(tmp[2]) - 1 Ps[k].append(int(tmp[4]) - 1) Ts[k].append(int(tmp[6]) - 1) return Ps, Ts
def loadTest(test_file): lines = cm.readFile(test_file) Ps={} Ts={} for k in range(0,cm.SPAN_NUM): Ps[k]=[] Ts[k]=[] for line in lines: tmp = line.strip().split(' ') k = int(tmp[2]) - 1 Ps[k].append(int(tmp[4])-1) Ts[k].append(int(tmp[6])-1) return Ps,Ts