Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy3
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3e60b9c1
authored
Jul 03, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e2f8de06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
147 additions
and
0 deletions
score.py
工作簿1.csv
score.py
0 → 100644
View file @
3e60b9c1
from
pyecharts.charts
import
Line
import
csv
line
=
Line
()
data
=
[[
"姓名"
,
"语文"
,
"数学"
,
"英语"
],
[
"小贝"
,
98
,
99
,
92
],
[
"聪聪"
,
95
,
91
,
95
]]
with
open
(
'scores.csv'
,
'w'
,
encoding
=
'utf-8'
,
newline
=
''
)
as
csvfile
:
writer
=
csv
.
writer
(
csvfile
)
writer
.
writerows
(
data
)
line
.
add_xaxis
(
data
[
1
])
line
.
add_yaxis
(
'聪聪'
,
data
[
2
])
line
.
add_yaxis
(
'小贝'
,
data
[
3
])
line
.
set_global_opts
(
title_opts
=
{
'test'
:
'聪聪,小杰,皮皮成绩统计图'
,
'subtest'
:
'高254班数学'
})
line
.
render
()
工作簿1.csv
0 → 100644
View file @
3e60b9c1
姓名,语文,数学,英语,,,
姓名,语文,数学,英语,,,
张三,27 ,94 ,51 ,,,
李四,76 ,96 ,0 ,,,
王五,67 ,45 ,80 ,,,
robin,34 ,88 ,42 ,,,
tim,2 ,47 ,58 ,,,
tom,42 ,68 ,15 ,,,
rose,93 ,99 ,3 ,,,
lisa,68 ,83 ,17 ,,,
role,14 ,77 ,64 ,,,
tone,58 ,87 ,56 ,,,
lone,65 ,17 ,42 ,,,
kim,80 ,51 ,33 ,,,
lola,4 ,57 ,79 ,,,
lady gaga,17 ,93 ,45 ,,,
black,6 ,17 ,93 ,,,
write,35 ,83 ,68 ,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
,,,,,,
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment