Good evening!
I have a .txt file that stores a data structure as follows:
índice: p1[x1, y1], p2[x2, y2], p3[x3, y3], p4[x4,y4]
An example of lines from my file is:
1: p1 = [62.61, 79.47], p2 = [64.17, 75.43], p3 = [58.85, 72.5], p4 = [57.45, 76.6]
2: p1 = [64.17, 75.43], p2 = [68.63, 63.22], p3 = [63.59, 60.71], p4 = [58.85, 72.5]
So, I'd like to know how I can just extract the important data from my file and store it in variables using Python language. In this case, the data of interest are the numeric values, which correspond to Cartesian coordinates.
Any help is welcome! :)