parent
3919e4ac88
commit
2e5f0e8fae
|
Binary file not shown.
@ -1,195 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Awesome-pyecharts</title>
|
||||
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
|
||||
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/themes/shine.js"></script>
|
||||
|
||||
</head>
|
||||
<body >
|
||||
<div id="66cf902e378046b4a9673c317f195451" class="chart-container" style="width:800px; height:600px; "></div>
|
||||
<script>
|
||||
var chart_66cf902e378046b4a9673c317f195451 = echarts.init(
|
||||
document.getElementById('66cf902e378046b4a9673c317f195451'), 'shine', {renderer: 'canvas'});
|
||||
var option_66cf902e378046b4a9673c317f195451 = {
|
||||
"animation": true,
|
||||
"animationThreshold": 2000,
|
||||
"animationDuration": 1000,
|
||||
"animationEasing": "cubicOut",
|
||||
"animationDelay": 0,
|
||||
"animationDurationUpdate": 300,
|
||||
"animationEasingUpdate": "cubicOut",
|
||||
"animationDelayUpdate": 0,
|
||||
"aria": {
|
||||
"enabled": false
|
||||
},
|
||||
"series": [
|
||||
{
|
||||
"type": "bar",
|
||||
"name": "\u8bc4\u5206",
|
||||
"legendHoverLink": true,
|
||||
"data": [
|
||||
"9.3",
|
||||
"9.3",
|
||||
"9.3",
|
||||
"9.3",
|
||||
"9.4",
|
||||
"9.4",
|
||||
"9.5",
|
||||
"9.5",
|
||||
"9.6",
|
||||
"9.7"
|
||||
],
|
||||
"realtimeSort": false,
|
||||
"showBackground": false,
|
||||
"stackStrategy": "samesign",
|
||||
"cursor": "pointer",
|
||||
"barMinHeight": 0,
|
||||
"barCategoryGap": "20%",
|
||||
"barGap": "30%",
|
||||
"large": false,
|
||||
"largeThreshold": 400,
|
||||
"seriesLayoutBy": "column",
|
||||
"datasetIndex": 0,
|
||||
"clip": true,
|
||||
"zlevel": 0,
|
||||
"z": 2,
|
||||
"label": {
|
||||
"show": true,
|
||||
"margin": 8
|
||||
}
|
||||
}
|
||||
],
|
||||
"legend": [
|
||||
{
|
||||
"data": [
|
||||
"\u8bc4\u5206"
|
||||
],
|
||||
"selected": {},
|
||||
"show": true,
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"itemWidth": 25,
|
||||
"itemHeight": 14,
|
||||
"backgroundColor": "transparent",
|
||||
"borderColor": "#ccc",
|
||||
"borderRadius": 0,
|
||||
"pageButtonItemGap": 5,
|
||||
"pageButtonPosition": "end",
|
||||
"pageFormatter": "{current}/{total}",
|
||||
"pageIconColor": "#2f4554",
|
||||
"pageIconInactiveColor": "#aaa",
|
||||
"pageIconSize": 15,
|
||||
"animationDurationUpdate": 800,
|
||||
"selector": false,
|
||||
"selectorPosition": "auto",
|
||||
"selectorItemGap": 7,
|
||||
"selectorButtonGap": 10
|
||||
}
|
||||
],
|
||||
"tooltip": {
|
||||
"show": true,
|
||||
"trigger": "item",
|
||||
"triggerOn": "mousemove|click",
|
||||
"axisPointer": {
|
||||
"type": "line"
|
||||
},
|
||||
"showContent": true,
|
||||
"alwaysShowContent": false,
|
||||
"showDelay": 0,
|
||||
"hideDelay": 100,
|
||||
"enterable": false,
|
||||
"confine": false,
|
||||
"appendToBody": false,
|
||||
"transitionDuration": 0.4,
|
||||
"textStyle": {
|
||||
"fontSize": 14
|
||||
},
|
||||
"borderWidth": 0,
|
||||
"padding": 5,
|
||||
"order": "seriesAsc"
|
||||
},
|
||||
"xAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"gridIndex": 0,
|
||||
"axisLabel": {
|
||||
"show": true,
|
||||
"rotate": 0,
|
||||
"margin": 8
|
||||
},
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": true,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"yAxis": [
|
||||
{
|
||||
"show": true,
|
||||
"scale": false,
|
||||
"nameLocation": "end",
|
||||
"nameGap": 15,
|
||||
"gridIndex": 0,
|
||||
"inverse": false,
|
||||
"offset": 0,
|
||||
"splitNumber": 5,
|
||||
"minInterval": 0,
|
||||
"splitLine": {
|
||||
"show": true,
|
||||
"lineStyle": {
|
||||
"show": true,
|
||||
"width": 1,
|
||||
"opacity": 1,
|
||||
"curveness": 0,
|
||||
"type": "solid"
|
||||
}
|
||||
},
|
||||
"data": [
|
||||
"\u4e09\u56fd\u6f14\u4e49\uff08\u5168\u4e8c\u518c\uff09",
|
||||
"\u52a8\u7269\u519c\u573a",
|
||||
"\u98d8",
|
||||
"\u767e\u5e74\u5b64\u72ec",
|
||||
"1984",
|
||||
"\u6d3b\u7740",
|
||||
"\u91ce\u8349",
|
||||
"\u4e09\u4f53\u5168\u96c6",
|
||||
"\u7ea2\u697c\u68a6",
|
||||
"\u54c8\u5229\u00b7\u6ce2\u7279"
|
||||
]
|
||||
}
|
||||
],
|
||||
"title": [
|
||||
{
|
||||
"show": true,
|
||||
"text": "\u8bc4\u5206\u524d10\u699c",
|
||||
"target": "blank",
|
||||
"subtarget": "blank",
|
||||
"left": "center",
|
||||
"bottom": "bottom",
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"textAlign": "auto",
|
||||
"textVerticalAlign": "auto",
|
||||
"triggerEvent": false
|
||||
}
|
||||
]
|
||||
};
|
||||
chart_66cf902e378046b4a9673c317f195451.setOption(option_66cf902e378046b4a9673c317f195451);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,226 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Awesome-pyecharts</title>
|
||||
<script type="text/javascript" src="https://assets.pyecharts.org/assets/v5/echarts.min.js"></script>
|
||||
|
||||
</head>
|
||||
<body >
|
||||
<div id="f91b113d26d04dc99f3a0df5c9667820" class="chart-container" style="width:900px; height:500px; "></div>
|
||||
<script>
|
||||
var chart_f91b113d26d04dc99f3a0df5c9667820 = echarts.init(
|
||||
document.getElementById('f91b113d26d04dc99f3a0df5c9667820'), 'white', {renderer: 'canvas'});
|
||||
var option_f91b113d26d04dc99f3a0df5c9667820 = {
|
||||
"animation": true,
|
||||
"animationThreshold": 2000,
|
||||
"animationDuration": 1000,
|
||||
"animationEasing": "cubicOut",
|
||||
"animationDelay": 0,
|
||||
"animationDurationUpdate": 300,
|
||||
"animationEasingUpdate": "cubicOut",
|
||||
"animationDelayUpdate": 0,
|
||||
"aria": {
|
||||
"enabled": false
|
||||
},
|
||||
"color": [
|
||||
"blue",
|
||||
"green",
|
||||
"yellow",
|
||||
"red",
|
||||
"purple"
|
||||
],
|
||||
"series": [
|
||||
{
|
||||
"type": "pie",
|
||||
"colorBy": "data",
|
||||
"legendHoverLink": true,
|
||||
"selectedMode": false,
|
||||
"selectedOffset": 10,
|
||||
"clockwise": true,
|
||||
"startAngle": 90,
|
||||
"minAngle": 0,
|
||||
"minShowLabelAngle": 0,
|
||||
"avoidLabelOverlap": true,
|
||||
"stillShowZeroSum": true,
|
||||
"percentPrecision": 2,
|
||||
"showEmptyCircle": true,
|
||||
"emptyCircleStyle": {
|
||||
"color": "lightgray",
|
||||
"borderColor": "#000",
|
||||
"borderWidth": 0,
|
||||
"borderType": "solid",
|
||||
"borderDashOffset": 0,
|
||||
"borderCap": "butt",
|
||||
"borderJoin": "bevel",
|
||||
"borderMiterLimit": 10,
|
||||
"opacity": 1
|
||||
},
|
||||
"data": [
|
||||
{
|
||||
"name": " \u4eba\u6c11\u6587\u5b66\u51fa\u7248\u793e ",
|
||||
"value": 9
|
||||
},
|
||||
{
|
||||
"name": " \u4f5c\u5bb6\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u5317\u4eac\u5341\u6708\u6587\u827a\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u91cd\u5e86\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u5357\u6d77\u51fa\u7248\u516c\u53f8 ",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"name": " \u8bd1\u6797\u51fa\u7248\u793e ",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"name": " \u4e0a\u6d77\u8bd1\u6587\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u5317\u4eac\u8054\u5408\u51fa\u7248\u516c\u53f8 ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u7fa4\u4f17\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u751f\u6d3b\u00b7\u8bfb\u4e66\u00b7\u65b0\u77e5\u4e09\u8054\u4e66\u5e97 ",
|
||||
"value": 2
|
||||
},
|
||||
{
|
||||
"name": " \u54c8\u5c14\u6ee8\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u5929\u6d25\u4eba\u6c11\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u4e2d\u56fd\u6d77\u5173\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"name": " \u4e2d\u56fd\u9752\u5e74\u51fa\u7248\u793e ",
|
||||
"value": 1
|
||||
}
|
||||
],
|
||||
"radius": [
|
||||
"0%",
|
||||
"75%"
|
||||
],
|
||||
"center": [
|
||||
"50%",
|
||||
"50%"
|
||||
],
|
||||
"label": {
|
||||
"show": true,
|
||||
"margin": 8,
|
||||
"formatter": "{b}: {c}"
|
||||
},
|
||||
"labelLine": {
|
||||
"show": true,
|
||||
"showAbove": false,
|
||||
"length": 15,
|
||||
"length2": 15,
|
||||
"smooth": false,
|
||||
"minTurnAngle": 90,
|
||||
"maxSurfaceAngle": 90
|
||||
},
|
||||
"rippleEffect": {
|
||||
"show": true,
|
||||
"brushType": "stroke",
|
||||
"scale": 2.5,
|
||||
"period": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"legend": [
|
||||
{
|
||||
"data": [
|
||||
" \u4eba\u6c11\u6587\u5b66\u51fa\u7248\u793e ",
|
||||
" \u4f5c\u5bb6\u51fa\u7248\u793e ",
|
||||
" \u5317\u4eac\u5341\u6708\u6587\u827a\u51fa\u7248\u793e ",
|
||||
" \u91cd\u5e86\u51fa\u7248\u793e ",
|
||||
" \u5357\u6d77\u51fa\u7248\u516c\u53f8 ",
|
||||
" \u8bd1\u6797\u51fa\u7248\u793e ",
|
||||
" \u4e0a\u6d77\u8bd1\u6587\u51fa\u7248\u793e ",
|
||||
" \u5317\u4eac\u8054\u5408\u51fa\u7248\u516c\u53f8 ",
|
||||
" \u7fa4\u4f17\u51fa\u7248\u793e ",
|
||||
" \u751f\u6d3b\u00b7\u8bfb\u4e66\u00b7\u65b0\u77e5\u4e09\u8054\u4e66\u5e97 ",
|
||||
" \u54c8\u5c14\u6ee8\u51fa\u7248\u793e ",
|
||||
" \u5929\u6d25\u4eba\u6c11\u51fa\u7248\u793e ",
|
||||
" \u4e2d\u56fd\u6d77\u5173\u51fa\u7248\u793e ",
|
||||
" \u4e2d\u56fd\u9752\u5e74\u51fa\u7248\u793e "
|
||||
],
|
||||
"selected": {},
|
||||
"show": true,
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"itemWidth": 25,
|
||||
"itemHeight": 14,
|
||||
"backgroundColor": "transparent",
|
||||
"borderColor": "#ccc",
|
||||
"borderRadius": 0,
|
||||
"pageButtonItemGap": 5,
|
||||
"pageButtonPosition": "end",
|
||||
"pageFormatter": "{current}/{total}",
|
||||
"pageIconColor": "#2f4554",
|
||||
"pageIconInactiveColor": "#aaa",
|
||||
"pageIconSize": 15,
|
||||
"animationDurationUpdate": 800,
|
||||
"selector": false,
|
||||
"selectorPosition": "auto",
|
||||
"selectorItemGap": 7,
|
||||
"selectorButtonGap": 10
|
||||
}
|
||||
],
|
||||
"tooltip": {
|
||||
"show": true,
|
||||
"trigger": "item",
|
||||
"triggerOn": "mousemove|click",
|
||||
"axisPointer": {
|
||||
"type": "line"
|
||||
},
|
||||
"showContent": true,
|
||||
"alwaysShowContent": false,
|
||||
"showDelay": 0,
|
||||
"hideDelay": 100,
|
||||
"enterable": false,
|
||||
"confine": false,
|
||||
"appendToBody": false,
|
||||
"transitionDuration": 0.4,
|
||||
"textStyle": {
|
||||
"fontSize": 14
|
||||
},
|
||||
"borderWidth": 0,
|
||||
"padding": 5,
|
||||
"order": "seriesAsc"
|
||||
},
|
||||
"title": [
|
||||
{
|
||||
"show": true,
|
||||
"text": "\u51fa\u7248\u5546\u5206\u5e03\u997c\u56fe",
|
||||
"target": "blank",
|
||||
"subtarget": "blank",
|
||||
"padding": 5,
|
||||
"itemGap": 10,
|
||||
"textAlign": "auto",
|
||||
"textVerticalAlign": "auto",
|
||||
"triggerEvent": false
|
||||
}
|
||||
]
|
||||
};
|
||||
chart_f91b113d26d04dc99f3a0df5c9667820.setOption(option_f91b113d26d04dc99f3a0df5c9667820);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,11 +0,0 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
|
||||
while True:
|
||||
msg = input('我:')
|
||||
sess = requests.get(
|
||||
('https://open.drea.cc/bbsapi/chat/get?keyWord=' + msg + '&userName=type%3Dbbs'))
|
||||
js = sess.text
|
||||
js = json.loads(js)
|
||||
print('微梦机器人:', js['data']['reply'])
|
Loading…
Reference in new issue