本文采用的接口是聚合数据提供的
python2.7环境,3.x环境试了下好像不支持,获取位置信息为空
如下为运用代码:
![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 #coding=utf-8 2 ''' 3 Created on 2019年9月18日 4 5 @author: yanerfree 6 7 python2.7 8 ''' 9 10 import json,urllib 11 from urllib import urlencode 12 13 #---------------------------------- 14 # 移动联通基站调用示例代码 - 聚合数据 15 # 在线接口文档:http://www.juhe.cn/docs/8 16 #---------------------------------- 17