import openpyxl
book = openpyxl.Workbook()
Sheet =book.active
Sheet.title = 'test'
#存入xlsx文件
r=1
for word,count in word_dict.items():
if r==1: #每一列名称
Sheet.cell(row=r,column=1,value='统计日期')
Sheet.cell(row=r,column=2,value='分词')
Sheet.cell(row=r,column=3,value='出现次数')
else: