--ini-enunciat >>> from clientela import seq_moviments, fusiona_seqs >>> it1 = seq_moviments('porta1.txt') >>> it2 = seq_moviments('porta2.txt') >>> itf = fusiona_seqs(it1, it2) >>> next(itf) (datetime.time(9, 5), 2) >>> next(itf) (datetime.time(9, 6), 1) >>> next(itf) (datetime.time(9, 10), 3) >>> next(itf) (datetime.time(9, 21), -1) >>> for temps, nc in itf: ... print(temps, nc, end='...') 09:30:00 -1...09:33:00 4...09:44:00 -2...09:45:00 -2...09:51:00 1...10:07:00 -1...10:12:00 -1...10:22:00 4...10:23:00 -2...11:10:00 3...11:21:00 2...11:37:00 -1...11:38:00 -2...11:47:00 -1...12:00:00 -5... --fi-enunciat >>> it1 = seq_moviments('porta1.txt') >>> it2 = seq_moviments('porta3.txt') >>> itf = fusiona_seqs(it1, it2) >>> for temps, nc in itf: ... print(temps, nc, end='...') 09:05:00 2...09:08:00 3...09:10:00 1...09:21:00 3...09:30:00 -1...09:33:00 3...09:42:00 -3...09:44:00 -2...09:51:00 4...10:07:00 -2...10:22:00 -1...10:23:00 -1...10:40:00 -1...10:45:00 4...10:48:00 2...10:55:00 3...11:05:00 -4...11:10:00 -3...11:47:00 -1...12:09:00 -2...12:00:00 1...12:22:00 4...12:33:00 -4...12:44:00 2...12:58:00 1...13:00:00 -3... >>> it1 = seq_moviments('porta2.txt') >>> it2 = seq_moviments('porta3.txt') >>> itf = fusiona_seqs(it1, it2) >>> for temps, nc in itf: ... print(temps, nc, end='...') 09:06:00 1...09:08:00 3...09:10:00 2...09:21:00 2...09:33:00 1...09:42:00 -3...09:45:00 -2...09:51:00 5...10:07:00 1...10:12:00 -1...10:22:00 3...10:23:00 -1...10:36:00 -4...10:40:00 -1...10:45:00 2...10:48:00 2...10:55:00 3...11:05:00 -4...11:21:00 2...11:37:00 -1...11:38:00 -2...11:47:00 -2...12:00:00 -5...12:00:00 1...12:22:00 4...12:33:00 -4...12:44:00 2...12:58:00 1...13:00:00 -3...