l =[['3 -1 2 0 2 0 -1 -1', '4 2 4 5 1 0 0 1 1'], ['6 -8 -8 15 15 0', '5 -1 3 2']] print([[[s[0]],[s[1]]] for s in l]) print("Convertendo em inteiros...") print([[[*map(int,s[0].split(" "))],[*map(int,s[1].split(" "))]] for s in l])
Standard input is empty
[[['3 -1 2 0 2 0 -1 -1'], ['4 2 4 5 1 0 0 1 1']], [['6 -8 -8 15 15 0'], ['5 -1 3 2']]] Convertendo em inteiros... [[[3, -1, 2, 0, 2, 0, -1, -1], [4, 2, 4, 5, 1, 0, 0, 1, 1]], [[6, -8, -8, 15, 15, 0], [5, -1, 3, 2]]]