概述
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 6 11:16:45 2020
Chengdu Metro Lines by plotly with python
@author: 进击的SB
"""
import requests
import time
import numpy as np
import math
# import plotly.offline as py
# import plotly.graph_objs as go
import pandas as pd
PI = math.pi
null = None
city_code=75
station_info = requests.get('http://map.baidu.com/?qt=bsi&c=%s&t=%s' % (
city_code,
int(time.time() * 1000)
))
station_info_json = eval(station_info.content)
# print(station_info_json)
# 解析地铁线路站点信息
for line in station_info_json['content']:
# i = 0
plots = []
plots_name = []
for plot in lin
最后
以上就是年轻狗为你收集整理的html绘制地铁线路图,Plotly绘制成都地铁全线路图(线路可实时更新最新线路 + 完整代码)...的全部内容,希望文章能够帮你解决html绘制地铁线路图,Plotly绘制成都地铁全线路图(线路可实时更新最新线路 + 完整代码)...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复