Aug-10-2020, 08:12 PM
print("".join(lines[max(0,index-4):min(index+4, len(lines)-1)]))
Need print out lines before and after the match
|
|
Messages In This Thread |
Need print out lines before and after the match - by tester_V - Aug-10-2020, 12:44 AM
RE: Need print out lines before and after the match - by deanhystad - Aug-10-2020, 01:28 AM
RE: Need print out lines before and after the match - by tester_V - Aug-10-2020, 03:29 AM
RE: Need print out lines before and after the match - by tester_V - Aug-10-2020, 07:50 PM
RE: Need print out lines before and after the match - by deanhystad - Aug-10-2020, 08:12 PM
RE: Need print out lines before and after the match - by tester_V - Aug-11-2020, 01:51 AM
RE: Need print out lines before and after the match - by deanhystad - Aug-11-2020, 02:50 AM
|