【发布时间】:2021-11-20 08:34:14
【问题描述】:
您好,我有一个包含多个信息的大文本文件。我想使用 python 程序或工具仅提取电子邮件 ID 和电话号码。
HTTP/1.1 200 OK
{"id":"269","first_name":"N S","last_name":"","balance":"0","phonecode":null,"mobile":null,"email":"wand412@gmail.com","verified":"0","password":""}
HTTP/1.1 200 OK
{"id":"303","first_name":"Devi","last_name":"Baruah","balance":"0","phonecode":null,"mobile":null,"email":"dxxxxxx@yahoo.com","verified":"0","password":""}
HTTP/1.1 200 OK
{"id":"306","first_name":"Rashmi","last_name":"Kumari","balance":"24","phonecode":"91","mobile":"9xxxxxxx","email":"xxxxxxx7@gmail.com","verified":"1","password":"xxxx"}
HTTP/1.1 200 OK
{"id":"308","first_name":"ashwini","last_name":"gokhale","balance":"7","phonecode":"1","mobile":"61xxxx","email":"axxxx@gmail.com","verified":"1","password":"xxxxxxx"}
HTTP/1.1 200 OK
{"id":"307","first_name":"Rama","last_name":"De","balance":"0","phonecode":"91","mobile":"73xxxxxx","email":"dexxxx@gmail.com","verified":"1","password":"xxxx"}
【问题讨论】: