Commit f575c4e3 by BellCodeEditor

auto save

parent 38569f0c
Showing with 118 additions and 18 deletions
abc=input()
if "er" in abc or "ly" in abc:
a=abc[:-2]
elif "ing" in abc:
a=abc[:-3]
else:
a=abc
print(a)
\ No newline at end of file
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
</head> </head>
<body> <body>
<div id="5a643afe88ed4ea5b6952a23f5df16f7" class="chart-container" style="width:900px; height:500px;"></div> <div id="ed41469a568944bc93e506287d37a412" class="chart-container" style="width:900px; height:500px;"></div>
<script> <script>
var chart_5a643afe88ed4ea5b6952a23f5df16f7 = echarts.init( var chart_ed41469a568944bc93e506287d37a412 = echarts.init(
document.getElementById('5a643afe88ed4ea5b6952a23f5df16f7'), 'white', {renderer: 'canvas'}); document.getElementById('ed41469a568944bc93e506287d37a412'), 'white', {renderer: 'canvas'});
var option_5a643afe88ed4ea5b6952a23f5df16f7 = { var option_ed41469a568944bc93e506287d37a412 = {
"animation": true, "animation": true,
"animationThreshold": 2000, "animationThreshold": 2000,
"animationDuration": 1000, "animationDuration": 1000,
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
"series": [ "series": [
{ {
"type": "line", "type": "line",
"name": "\u5206\u6570", "name": "\u806a\u806a\u5206\u6570",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
"data": [ "data": [
[ [
"\u7b2c1\u6b21", "\u7b2c1\u6b21",
112 102
], ],
[ [
"\u7b2c2\u6b21", "\u7b2c2\u6b21",
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
}, },
{ {
"type": "line", "type": "line",
"name": "\u5206\u6570", "name": "\u5c0f\u6770\u5206\u6570",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
}, },
{ {
"type": "line", "type": "line",
"name": "\u5206\u6570", "name": "\u76ae\u76ae\u5206\u6570",
"connectNulls": false, "connectNulls": false,
"symbolSize": 4, "symbolSize": 4,
"showSymbol": true, "showSymbol": true,
...@@ -256,18 +256,97 @@ ...@@ -256,18 +256,97 @@
}, },
"zlevel": 0, "zlevel": 0,
"z": 0 "z": 0
},
{
"type": "line",
"name": "\u61a8\u6279\u5206\u6570",
"connectNulls": false,
"symbolSize": 4,
"showSymbol": true,
"smooth": false,
"clip": true,
"step": false,
"data": [
[
"\u7b2c1\u6b21",
1
],
[
"\u7b2c2\u6b21",
29
],
[
"\u7b2c3\u6b21",
56
],
[
"\u7b2c4\u6b21",
34
],
[
"\u7b2c5\u6b21",
59
],
[
"\u7b2c6\u6b21",
24
],
[
"\u7b2c7\u6b21",
70
],
[
"\u7b2c8\u6b21",
100
],
[
"\u7b2c9\u6b21",
89
],
[
"\u7b2c10\u6b21",
130
]
],
"hoverAnimation": true,
"label": {
"show": true,
"position": "top",
"margin": 8
},
"lineStyle": {
"show": true,
"width": 1,
"opacity": 1,
"curveness": 0,
"type": "solid"
},
"areaStyle": {
"opacity": 0
},
"zlevel": 0,
"z": 0
} }
], ],
"legend": [ "legend": [
{ {
"data": [ "data": [
"\u5206\u6570", "\u806a\u806a\u5206\u6570",
"\u5206\u6570", "\u5c0f\u6770\u5206\u6570",
"\u5206\u6570" "\u76ae\u76ae\u5206\u6570",
"\u61a8\u6279\u5206\u6570"
], ],
"selected": { "selected": {
"\u5206\u6570": true "\u806a\u806a\u5206\u6570": true,
} "\u5c0f\u6770\u5206\u6570": true,
"\u76ae\u76ae\u5206\u6570": true,
"\u61a8\u6279\u5206\u6570": true
},
"show": true,
"padding": 5,
"itemGap": 10,
"itemWidth": 25,
"itemHeight": 14
} }
], ],
"tooltip": { "tooltip": {
...@@ -344,9 +423,13 @@ ...@@ -344,9 +423,13 @@
} }
} }
} }
] ],
"title": {
"text": "\u6253\u602a\u6210\u7ee9",
"subtext": "\u5355\u4f4d\uff1a\u4e2a"
}
}; };
chart_5a643afe88ed4ea5b6952a23f5df16f7.setOption(option_5a643afe88ed4ea5b6952a23f5df16f7); chart_ed41469a568944bc93e506287d37a412.setOption(option_ed41469a568944bc93e506287d37a412);
</script> </script>
</body> </body>
</html> </html>
a=input()
S=int(int(a)*(int(a)//2))//2
print("%.2f"%S)
\ No newline at end of file
from pyecharts.charts import Line from pyecharts.charts import Line
test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"] test = ["第1次","第2次","第3次","第4次","第5次","第6次","第7次","第8次","第9次","第10次"]
student1 = [112, 110, 118, 124, 129, 132, 136, 139, 144, 143] # 聪聪 student1 = [5, 10, 88, 24, 89, 132, 136, 139, 144, 143]
student2 = [128, 131, 132, 129, 130, 127, 129, 131, 132, 128] # 小杰 student2 = [8, 31, 32, 29, 90, 127, 129, 131, 132, 128]
student3 = [143, 145, 140, 133, 134, 126, 121, 120, 114, 105] # 皮皮 student3 = [3, 45, 40, 33, 134, 126, 121, 120, 114, 105]
student4=[1,29,56,34,59,24,70,100,89,130]
bbbb=Line() bbbb=Line()
bbbb.add_xaxis(test) bbbb.add_xaxis(test)
bbbb.add_yaxis("聪聪分数",student1) bbbb.add_yaxis("聪聪分数",student1)
bbbb.add_yaxis("小杰分数",student2) bbbb.add_yaxis("小杰分数",student2)
bbbb.add_yaxis("皮皮分数",student3) bbbb.add_yaxis("皮皮分数",student3)
bbbb.add_yaxis("憨批分数",student4)
bbbb.set_global_opts(title_opts={"text":"打怪成绩","subtext":"单位:个"})
bbbb.render("1234.html") bbbb.render("1234.html")
\ No newline at end of file
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