The front part and back part is about the file, how to extract only the middle x, y data to carry on the drawing, and other data not read?
CodePudding user response:
With the open (path) as f:Data=(https://bbs.csdn.net/topics/f.readlines)
Data=https://bbs.csdn.net/topics/data [then]
For I in data:
I=i. trip ()
Print (I)
Can look like this
CodePudding user response:
If the content of each file content is different, can consider to use regular expressions to match your data!However, what data you are x which is y?