猫史档案馆


【Python作品分享】一周作业项数折线统计图【作品秀】

用户:依依Amy依依Amy查看:0 回复:0 评论:0 创建时间:2019-12-06T20:34:58


【作品展示】

center_image

 

【作品介绍】

编了一个条形统计图统计作业项数。

实践证明:我们学校的回家作业真的太少了。

 

【作品源代码】

from pyecharts import Line
import webbrowser
import os
line = Line('一周作业项数折线统计图')
day = ['星期一', '星期二', '星期三', '星期四', '星期五', ]
Chinese = [2,3,4,3,4]
math = [1,2,3,1,2]
English = [3,3,2,2,2]
another = [4,3,2,1,2]
line.add('语文',day,Chinese)
line.add('数学',day,math)
line.add('英语', day, English)
line.add('其它', day, another)
line.render()
webbrowser.open('file://' + os.path.realpath('render.html'))

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页