
| ||||||||||
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |

请回答下列问题:
图a
请回答下列问题:
(提示:SUMIF函数用于对以域中满足条件的单元格求和。例如:=SUMIF(B3:B20,"高二",I3:I20)表示高二年级所有选手总分之和)
图b
① ②
图 a
图 b

请回答下列问题:
from flask import Flask,render_template,request
app = _____________
@app.route("/")
def index():
#显示“主页”页面,代码略
@app.route("/introduce")
def introduce():
#显示“介绍”页面,代码略
@app.route("/exercise",methods=["GET","POST"])
def exercise():
#显示“练习”页面,代码略
@app.route("/top")
def toplist():
#显示“排行榜”页面,代码略
if __name__ == "__main__":
app.____________
|
A.//127.0.0.1:5000/top toplist() |
a.@app.route("/top") |
|
B.//127.0.0.1:5000/ exercise() |
b.@app.route("/exercise",methods=["GET","POST"]) |
|
C.//127.0.0.1:5000/exercise introduce() |
c.@app.route("/introduce") |
|
D.//127.0.0.1:5000/instance index() |
d.@app.route("/") |
、、、
(提示: SUMIF 函数用于对满足条件的单元格求和。例如“=SUMIF (B4:B33, G3, E4:E33)”,用于统计2020年11月类别为“服饰”的金额总和。)
分析该图表可知,该柱形图数据源范围是;
| 序号 | 书店名称 | 图书名称 | 销量 | 单位 |
| 1 | 新华书店 | 三国演义 | 41 | 本 |
| 2 | 学仁书店 | 十万个为什么 | 32 | 本 |
| 3 | 学仁书店 | 红楼梦 | 36 | 本 |
| 4 | 联合书店 | 弟子规 | 21 | 本 |
用Python程序对数据做了整理与分析:
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams["font.sans-serif"]=["SimHei"] #用于显示中文标签
data=pd.read_excel("图书销量表.xlsx")
data=data.drop(2,axis=0)
s=data.sort_values("销量",ascending=True)
plt.bar(s.图书名称,s.销量,label="销量")
plt.title("各图书销量比较",fontsize=26) #设置图表标题
plt.legend()
plt.show()
上述代码运行后,输出的结果为
B .
C .
D .
import import import
pandas as pd
os,jieba,re,random,wordcloud
matplotlib.pyplot as plt
from PIL import Image
wzdir = "./2021 浙江高考满分作文/"
wz = os.listdir(wzdir) #获得文件夹中所有文件的名称列表
wzrd = ①
f=open(wzdir+wzrd[0],encoding="utf-8")
dd=f.read ()
f.close()
#使用正则表达式去除文章中的标点符号
ss = re.sub("[、,。:“”;?\n]","",dd)
wb = jieba.lcut(ss,cut_all=True)
word = {}
for i in wb:
t =i.strip()
if len(t)>1:
if t in word:
word[t]+=1
else:
②
wc = wordcloud.WordCloud(font_path="msyh.ttc", width=800, height=600) wc.background_color="white"
wc.fit_words (word)
img = wc.to_array()
plt.rcParams['font.sans-serif']=['SimHei'] plt.figure()
plt.imshow(img)
plt.axis(False)
plt.title(wzrd[0].split(".")[0])
③
#支持中文显示
②③