Commit 4e83adec by BellCodeEditor

save project

parent 82693961
Showing with 24 additions and 15 deletions
from pyecharts.charts import Bar
b=Bar()
subjects = ["浈浈", "聪聪", "小智", "波奇"]
scores1 = [92, 95, 82, 88] # 期中成绩
scores2 = [95, 79, 93, 90] # 期末成绩
b.add_xaxis(subjects)
b.add_yaxis('期中',scores1)
b.add_yaxis('期末',scores2)
b.render()
\ No newline at end of file
i=3
userneam="python"
userpassword="123456"
while True:
if i<0:
neam=input("hwryiayr")
password=input("ytftefteuty")
i-=1
if name == userneam and password == userpassword:
print("dydfyg")
break
if name !=userpassword:
print("gfdgheh")
continue
if password != userpassword:
print("uwhuehuefh")
else:
print("guuhuhuhu")
......@@ -7,11 +7,11 @@
</head>
<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>
var chart_5cf3feacc2244077ba167e39db8b19cc = echarts.init(
document.getElementById('5cf3feacc2244077ba167e39db8b19cc'), 'white', {renderer: 'canvas'});
var option_5cf3feacc2244077ba167e39db8b19cc = {
var chart_f5b0253f621441b7bb5bdfc12efbd8ba = echarts.init(
document.getElementById('f5b0253f621441b7bb5bdfc12efbd8ba'), 'white', {renderer: 'canvas'});
var option_f5b0253f621441b7bb5bdfc12efbd8ba = {
"animation": true,
"animationThreshold": 2000,
"animationDuration": 1000,
......@@ -184,7 +184,7 @@
}
]
};
chart_5cf3feacc2244077ba167e39db8b19cc.setOption(option_5cf3feacc2244077ba167e39db8b19cc);
chart_f5b0253f621441b7bb5bdfc12efbd8ba.setOption(option_f5b0253f621441b7bb5bdfc12efbd8ba);
</script>
</body>
</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