Considering that the file has only data in the mentioned format, we can turn them into a list of lists comprehensilist on.
Using best practices to open and manipulate files, the code to process this data gets like this:
with open('dados.txt', 'r') as f:
results = [[float(entry) for entry in line.split()] for line in f.readlines()]
print(results)
Upshot
[[0.435, 0.8798, 0.0099, 1.0], [0.4375, 0.8674, 0.009, 1.0], [0.44, 0.8682, 0.0082, 1.0]]
How It Works
First we iterate on all lines of the file on for
external. For each line of the file, the split
(string) to separate the values into a new list used by for
internal. Then the function float
makes the string cast to float.