orginal_list = [["a b c d e:19:10 5 3 1 2"],["a c d e f:38:15 2 4 7 9"]]
# split list with ,
list1 = orginal_list[0]
list2 = orginal_list[1]
# split array with :
split_list1 = str(list1[0]).split(':')
list_abc = str(split_list1[0]).split(' ')
print(list_abc)
split_list2 = str(list2[0]).split(':')
number = split_list2[1]
print(number)
list_1524 = str(split_list2[2]).split(' ')
print(list_1524)
خروجی:
['a', 'b', 'c', 'd', 'e']
38
['15', '2', '4', '7', '9']
اجرای کد بصورت آنلاین : https://onlinegdb.com/rJbibCa34