Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson24-diy2
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
4e83adec
authored
Nov 05, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
82693961
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
15 deletions
my_analysis.py
render.html
my_analysis.py
View file @
4e83adec
from
pyecharts.charts
import
Bar
i
=
3
b
=
Bar
()
userneam
=
"python"
subjects
=
[
"浈浈"
,
"聪聪"
,
"小智"
,
"波奇"
]
userpassword
=
"123456"
scores1
=
[
92
,
95
,
82
,
88
]
# 期中成绩
while
True
:
scores2
=
[
95
,
79
,
93
,
90
]
# 期末成绩
if
i
<
0
:
b
.
add_xaxis
(
subjects
)
neam
=
input
(
"hwryiayr"
)
b
.
add_yaxis
(
'期中'
,
scores1
)
password
=
input
(
"ytftefteuty"
)
b
.
add_yaxis
(
'期末'
,
scores2
)
i
-=
1
b
.
render
()
if
name
==
userneam
and
password
==
userpassword
:
\ No newline at end of file
print
(
"dydfyg"
)
break
if
name
!=
userpassword
:
print
(
"gfdgheh"
)
continue
if
password
!=
userpassword
:
print
(
"uwhuehuefh"
)
else
:
print
(
"guuhuhuhu"
)
render.html
View file @
4e83adec
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
</head>
</head>
<body>
<body>
<div
id=
"
5cf3feacc2244077ba167e39db8b19cc
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<div
id=
"
f5b0253f621441b7bb5bdfc12efbd8ba
"
class=
"chart-container"
style=
"width:900px; height:500px;"
></div>
<script>
<script>
var
chart_
5cf3feacc2244077ba167e39db8b19cc
=
echarts
.
init
(
var
chart_
f5b0253f621441b7bb5bdfc12efbd8ba
=
echarts
.
init
(
document
.
getElementById
(
'
5cf3feacc2244077ba167e39db8b19cc
'
),
'white'
,
{
renderer
:
'canvas'
});
document
.
getElementById
(
'
f5b0253f621441b7bb5bdfc12efbd8ba
'
),
'white'
,
{
renderer
:
'canvas'
});
var
option_
5cf3feacc2244077ba167e39db8b19cc
=
{
var
option_
f5b0253f621441b7bb5bdfc12efbd8ba
=
{
"animation"
:
true
,
"animation"
:
true
,
"animationThreshold"
:
2000
,
"animationThreshold"
:
2000
,
"animationDuration"
:
1000
,
"animationDuration"
:
1000
,
...
@@ -184,7 +184,7 @@
...
@@ -184,7 +184,7 @@
}
}
]
]
};
};
chart_
5cf3feacc2244077ba167e39db8b19cc
.
setOption
(
option_5cf3feacc2244077ba167e39db8b19cc
);
chart_
f5b0253f621441b7bb5bdfc12efbd8ba
.
setOption
(
option_f5b0253f621441b7bb5bdfc12efbd8ba
);
</script>
</script>
</body>
</body>
</html>
</html>
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