sis = file("file.sis", "r")
val = file("file.val", "wt")
n = int(sis.readline().strip())
la = sis.readline().strip()
alist = []
for i in xrange(n):
line = sis.readline().strip()
alist.append(line.split())
for i in xrange(n):
print map(int, alist[i][0].split(":")), map(int, alist[i][1].split(":"))
In:
07:34 08:55 10 20
08:25 09:00 10 20
Out:
08:25 09:00 10 20
07:34 08:55 10 20