Commit 4e83adec by BellCodeEditor

save project

parent 82693961
Showing with 24 additions and 15 deletions
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")
...@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment