import json import requests num = int(input('请输入你的手机号:')) url = 'http://apis.juhe.cn/mobile/get?phone=%s&key=89baea64806cf2020fed945e44a65dd2'%num rs = requests.get(url) rs_dict = json.loads(rs.text) result_dict = rs_dict['result'] pro = result_dict['province'] city = result_dict['city'] areacode = result_dict['areacode'] zip = result_dict['zip'] compy = result_dict['company'] print('省份:%s 城市:%s 区域号码:%s 邮编:%s 运营商:%s'%(pro,city,areacode,zip,compy))
基于python的手机号码归属信息查询系统
最新推荐文章于 2024-05-25 22:30:00 发布