Jun-07-2020, 05:28 PM
line = '2020-05-22##18:00:00###RANGE ###RANGE ###RANGE ##201828##190182##96136##2 ##0 ###RANGE ###RANGE ##532387##644##313415' print(list(item.strip() for item in line.split('##') if item != '#RANGE '))
Output:['2020-05-22', '18:00:00', '201828', '190182', '96136', '2', '0', '532387', '644', '313415']