1, when reading the file, open it with with open, and then after for line in f starts reading, it is very convenient to view the data near each line
with open('file_path', 'r') as f:for line in f:if 'some_info' in line:next_info = f.readline()print(app_info)
This allows you to view the data information on the next line of the line where some_info is located