Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = open("new_left.txt", "r")
- # file2 = open("new_left_result", "a")
- for line in file:
- fields = line.split(" ")
- print(str(fields[1]))
- if ("[2009-05-04" in str(fields[1]) or "[2009-05-05" in str(fields[1]) or "[2009-05-06" in str(fields[1]) or \
- "[2009-05-07" in str(fields[1]) or "[2009-05-08" in str(fields[1])) and ("T20:00+14:30" in str(fields[1])
- or "T20:00+15:00" in str(fields[1]) or "T20:00+15:30" in str(fields[1])):
- print(fields[0])
- file.close()
Add Comment
Please, Sign In to add comment