用户:
UMS查看:0 回复:2 评论:0 创建时间:2020-05-15T21:01:15
【作品展示】

【作品介绍】
要自己填两个y坐标,x坐标只要有数据随便怎么延长
【作品源代码】
from pyecharts import Bar
from pyecharts import Line
import json
import webbrowser
import os
y_axis1=[33,33,33,31,30,31,30]
y_axis2=[27,27,26,25,26,25,25]
def temp(a):
x_axis=["今天","明天","后天","大后天","4天后","5天后","6天后"]
line=Line(str(a)+"七天内的温度变化")
line.add("最高气温", x_axis, y_axis1, yaxis_formatter="°C",mark_point=["max", "min", "average"])
line.add("最低气温", x_axis, y_axis2, yaxis_formatter="°C",mark_point=["max", "min", "average"])
line.render()
webbrowser.open("file://"+os.path.realpath("render.html"))
temp("宝安")
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn