嵌套字典的读取
>>> dict = {'origin':'108.923603,34.253352', 'destination':'108.958733,34.342457', 'results':{'distance':'12866', 'duration':'11028'}}
>>> result = dict['results']
>>> print(result)
{'distance': '12866', 'duration': '11028'}
>>> result = dict['results']['distance']
>>> print(result)
12866
遇到的问题之一:TypeError: '<=' not supported between instances of 'NoneType' and 'int'
>>> dict = {'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'results':
[{'origin_id': '1', 'dest_id': '1', 'distance': '12866', 'duration':