智一面的面试题提供python的测试题
使用地址:http://www.gtalent.cn/exam/interview?token=09b2a6b63e829ef00c112d80fe78d1df

import requests
import json

key = 'GjG3XAdmywz7CyETWqHwIuEC6ZExY6QT'
r = requests.get(url='http://api.map.baidu.com/geocoder/v2/', params={'location':'32.03805,120.275443','ak':key,'output':'json'})

result = r.json()
print(result)
province = result['result']['addressComponent']['province']
city = result['result']['addressComponent']['city']
print(province,city)

————————————————

我们的python技术交流群:941108876
智一面的面试题提供python的测试题
http://www.gtalent.cn/exam/interview?token=a1d36ec05adbae1684c0acf0857545d2