import folium
# 创建地图对象
mo = folium.Map(location=[39.917834, 116.397036], zoom_start=13, tiles=None)
# 添加高德地图瓦片图层
folium.TileLayer(
tiles='http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
attr='高德地图',
min_zoom=0,
max_zoom=19,
control=True,
show=True
).add_to(mo)
# 保存地图为HTML文件
mo.save('test.html')