Python. Join specific lines on 1 line
问题 Let's say I have this file: 1 17:02,111 Problem report related to router 2 17:05,223 Restarting the systems 3 18:02,444 Must erase hard disk now due to compromised data I want this output: 1 17:02,111 Problem report related to router 2 17:05,223 Restarting the systems 3 18:02,444 Must erase hard disk now due to compromised data Been trying in bash and got to a kind of close solution but I don't know how to carry this out on Python. Thank you in advance 回答1: If you want to remove the extea