**format_data.txt** ```text test login_id: userid authority: root folder: root123 login password: 1234*** ``` **Python script** ```python import re with open('format_data.txt', 'r') as f: data = [{k: v} for k, v in re.findall(r'\s*(.+?):\s+([^\s]+)', f.read())] print(data) # [{'test login_id': 'userid'}, {'authority': 'root'}, {'folder': 'root123'}, {'login password': '1234***'}] ```