代码拉取完成,页面将自动刷新
from xlwt import Workbook
import openpyxl
# Workbook is created
wb = Workbook()
# add_sheet is used to create sheet.
sheet1 = wb.add_sheet('Sheet 1')
sheet1.write(1, 0, 'ISBT DEHRADUN')
sheet1.write(2, 0, 'SHASTRADHARA')
sheet1.write(3, 0, 'CLEMEN TOWN')
sheet1.write(4, 0, 'RAJPUR ROAD')
sheet1.write(5, 0, 'CLOCK TOWER')
sheet1.write(0, 1, 'ISBT DEHRADUN')
sheet1.write(0, 2, 'SHASTRADHARA')
sheet1.write(0, 3, 'CLEMEN TOWN')
sheet1.write(0, 4, 'RAJPUR ROAD')
sheet1.write(0, 5, 'CLOCK TOWER')
wb.save('xlwt example.xls')
# Workbook is created
openpyxl_wb = openpyxl.Workbook()
# create_sheet is used to create sheet.
sheet1 = openpyxl_wb.create_sheet("Sheet 1")
sheet1.cell(1, 1, 'ISBT DEHRADUN')
sheet1.cell(2, 1, 'SHASTRADHARA')
sheet1.cell(3, 1, 'CLEMEN TOWN')
sheet1.cell(4, 1, 'RAJPUR ROAD')
sheet1.cell(5, 1, 'CLOCK TOWER')
sheet1.cell(1, 1, 'ISBT DEHRADUN')
sheet1.cell(1, 2, 'SHASTRADHARA')
sheet1.cell(1, 3, 'CLEMEN TOWN')
sheet1.cell(1, 4, 'RAJPUR ROAD')
sheet1.cell(1, 5, 'CLOCK TOWER')
openpyxl_wb.save("openpyxl example.xlsx")
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。